A bot for the Conaticus Discord server. A document of the development process has been made here: https://www.youtube.com/watch?v=xq2jR3_msmk.
- Clone/Fork the repository
- Run
npm i
In order to setup the bot, you must create a .env
in the parent directory.
In this file you must declare the bot's CLIENT_ID
and TOKEN
- this is the client and token from the Discord Developer Portal.
Syntax:
CLIENT_ID="your bot client id"
TOKEN="your bot token"
This will automatically be ignored from the .gitignore
. so do not worry about this data being public.
In order to run the bot, you must run npm run dev
to run the TypeScript developer environment. Do not worry about the other package.json
scripts, they are for production.
General: "ORANGE"
Success: "GREEN"
Error: "RED"
The configuration file is used for constant variables that will be reused in the application, such as ids and reaction messages. It is located at /src/config.ts
- feel free to add anything that matches this description.
Data is currently stored in the data.json
file. Only reaction messages are stored here, which is why a database is not present. If you are adding more data handling to the bot, please switch to sqlite.