A multipurpose bot designed for the CODS and Easy Modo servers.
- Node.js version 16.19 or higher
- A GCP account with a Google Sheets API enabled and a GAPI token
- A Discord Application setup for bots
- A Discord Server
- Internet access
- Copy the
sample.envfile, rename it.env, and fill out the relevant information. - Download your GAPI token, name it
gapi-token.json, and move it to the root directory - Open terminal in the root directory and run
npm install - Use one of 2 methods to deploy commands:
- Run
npm run deploy-devto deploy all commands into the "EasyModo" server listed in the.envfile. This is mainly used for development. - Run
npm run deploy-prodto deploy commands only to their specific servers.
- Run
- Use one of 2 methods to start/stop the bot
- To have the bot restart whenever a file is changed, run
npm run start-dev. Pressctrl+Cseveral times to stop the process. Keep in mind the bot will close when you close terminal. - To run the bot in the background, instead run
npm start. Closing the terminal will not end the process. Open terminal in the root directory and runnpm stopto end the process. Any logs can be found in the newly-madelogs.txt
- To have the bot restart whenever a file is changed, run
/commands: Holds any commands. Any in this folder will be deployed to all servers./CODS: Holds commands for CODS specifically. Will be deployed to EasyModo whendeploy-devis ran./EasyModo: Holds commands for EasyModo specifically.
/events: Holds any discord events (such as modalSubmit)/models: Holds mongoDB models.deploy-commands.js: Contains code on deploying commands.index.js: The actual bot processpackage.jsonandpackage-lock.json: Project files