- 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
.envand fill inDISCORD_TOKENwith the token of the botAPP_IDwith the ID of the bot application
- Install dependencies with
npm install - Register slash commands with
npm run deployornode 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