A bot that runs games of werewolf on a server
-
Clone the repo to your machine
-
download node modules using
npm install
-
Make sure you have a bot set up
-
run the bot using
node index.js
-
Create a bot
-
Create an .env file and add the token there
TOKEN=Example.token.here
- Permission the bot with Admin privilege
Commands must be registered before they can be run. You must reregister if the name or description changes. Changing the interaction can be done without registering.
Changes to global slash commands is slower than to a specific guild
https://discordjs.guide/creating-your-bot/command-deployment.html#guild-commands
-
Add the client (application) id and the guild id to the env
-
add the command to the commands folder. It must contain a name, description, and an interaction
-
Register the new commands by running
node deploy-commands.js
.