- Install Node.js and npm from https://nodejs.org/en/download/
- Clone the repository with
git clone https://github.com/csesoc/discord-bot
- Go to
.env
and fill inDISCORD_TOKEN
with the token of the botAPP_ID
with the ID of the bot application
- Install dependencies with
npm install
- Register slash commands with
npm run deploy
ornode deploy-commands.js
- Ensure a PostgreSQL database is setup according to "config/database.yml"
- Start the bot with
node index.js
- Nodemon has been installed, this addition allows for continuous integration with and hot reloads the bot upon saving.
- Run the bot with Nodemon using
npm run server