This project is a discord bot that can sync data from randomdice.gg website.
It is a submodule of randomdice.gg Repository.
First install all required packages.
Include the following environment variables in a .env
Variable Name | Description |
---|---|
BOT_TOKEN | Token for discord bot |
FIREBASE_ADMIN_PRIVATE_KEY | Private key for accessing firebase database |
FIREBASE_ADMIN_CLIENT_EMAIL | Client email for firebase service account |
Execute eslint, prettier and ts-node to start a development sever.
Register Discord application commands, only in development, to prevent spamming api requests
This project is built to deployed with git onto heroku. On production server, use npm start
to start, optionally you can start the production in daemon with forever
.