-
- Run
npm install
to install packages - Create an
.env
in the root (./) directory- You must have a Discord Developer account setup to obtain a bot token.
- Developer mode must be enabled in your Discord Client to obtain your Guild and Client IDs.
- Contents of the
.env
file:
TOKEN = <Discord_Bot_Token> CLIENT_ID = <Owner_ID> SUPABASE_URL = <Supabase_Project_URL> SUPABASE_KEY = <Supabase_Service_Key> HEARTBEAT_URL = <Heartbeat_URL>
- Run the bot with build scripts
- Run
-
npm start
: Runs the code normally using ts-node.npm run dev
: Starts the ts-node-dev watcher and recompiles + runs code whenever a change is made.npm run build
: Compiles .TS files to .JS using TSC
-
./index.ts
contains handler routing and login./commands
contains individual commands./config
contains data storage/configuration./events
contains handlers for different events./interfaces
contains interfaces./utils
contains utility files
-
/balance
/claim
/leaderboard
/report
-
/pay
-
/attendance
/checkin
/find
/grant
/memberships
/ping
/pruneexpiredmembers
/rolegiver
/setguildconfig
/supabaseping
/whois
-
/cancelmembership
/createcontact
/grantmembership
/updatecontact
- To build the image, run
docker build -t <image-name> .
- To create a container, run
docker run -dp <docker-port>:<external-port> --env-file .env <image-name>
-
- We want everyone to be able to help us in any way they can! Every idea is welcome, please open an issue describing what you have in mind first. We'll discuss your idea and we may add it to the bot! Feel free to also leave your thoughts!
-
- Found a bug? Please let us know! Don't hesitate to write a bug report with as much information as possible!
- Are you the exterminator type? Feel free to check out an existing bug report and see if you can find anything new and tell us what you've found.