Adding commands to a discord botsteemCreated with Sketch.

in utopian-io •  7 years ago  (edited)

What is this

This is a discord bot that attempts to replace the moderators on a discord server by allowing anyone to initiate a vote to use admin commands

It is written in type-script and compiled to javascript for Node-js

What did I do

This bot originally just supported muting and unmuting people from voice channels, I added the kick command and made it so that you must be in the voice channel to vote on muting someone.

https://github.com/ZLima12/TheEqualizer/pull/5

pull request

How?

Adding commands to this bot is suprisinglprisingly easy, you just must create a file in the src/commands folder. You can base it off of the already created commands and just modify the name. You then must add the command to the src/commands.ts file and add the documentation in doc/ .

description.md

invocation.md



Open Source Contribution posted via Utopian.io

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

I am sorry @ajayyy this contribution was not voted in time. The problem is you have little votes here and the bot could not catch this contribution. Please try next time and chat me on discord if you don't get a vote within 48 hours. Really looking forward for more contributions like this one!

  ·  7 years ago (edited)

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

  ·  7 years ago (edited)

It keeps giving an error when I add the correct repository, do you know why?

Edit: Fixed

  ·  7 years ago (edited)

I don't know. I saw that it had had the correct one and suddenly it changed.

You can contact us on Discord.
[utopian-moderator]