- Pull down repo.
- Run
npm install
to install dependencies. - Get token from Cal or Discord.
- Add token to
.env
file. - Once token is added, run
npm run start
to start the bot.- Everytime you make changes to the bot code locally, the bot will restart. This is done via nodedemon.
- You can read more about nodemon here: https://www.npmjs.com/package/nodemon
- To stop the bot, press
Ctrl + C
.
- Everytime you make changes to the bot code locally, the bot will restart. This is done via nodedemon.
- Add new slash commands to
commands/utility
. - Run
npm run deploycommands
to deploy the commands to Discord.- You can read more about slash commands here: https://discordjs.guide/creating-your-bot/command-deployment.html#guild-commands
- Run
npm run lint
to lint the code.
- Discord.js docs: https://discord.js.org/#/docs/main/stable/general/welcome
- Discord Developer Portal: https://discord.com/developers/applications
- Discord.js Guide: https://discordjs.guide/