Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.35 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.35 KB

randomdice.gg-discord-bot

This project is a discord bot that can sync data from randomdice.gg website.

It is a submodule of randomdice.gg Repository.

Before You Start

npm install

First install all required packages.

Create .env

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

Development

npm run dev

Execute eslint, prettier and ts-node to start a development sever.

npm run dev:register-slash-commands

Register Discord application commands, only in development, to prevent spamming api requests

Deployment

npm start

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.