Adding commands to a discord bot

Words
138
Reading
1 min
Listen
Play
9y

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

Adding commands to a discord bot | Ecency