This is a very basic discord bot that will generate a red and a blue side team for a given voice channel.
-
maketeams
: This command will generate two random teams of the users in the voice channel of the caller. -
moveteams
: This command will move the generated teams to different voice channels -
blueid <id>
: Sets the id of the voice channel that the blue side team should be moved to upon callingmoveteams
-
redid <id>
: Sets the id of the voice channel that the red side team should be moved to upon callingmoveteams
Note that voice channel ids can be copied when developer mode is active (via discord app settings).
- Create auth.json with valid credentials. An example is below.
npm install package.json
npm install discord.js
node bot.js
Auth token can be created via the developer portal on discord.
{
"token" : "<your_token>"
}