botleeng-discord
Development
- Clone the repo
- Install dependencies
$ npm install
- Make a copy of
config/local.template.js
intoconfig/local.js
and fill up the vars
$ cp config/local.template.js config/local.js
- Run server
$ npm run dev
Deployment
Build the Docker file
$ docker build -t botleeng .
Run the Docker file
$ docker run -d -e DISCORD_TOKEN=<token> -e ADMIN_ROLE_ID <role-id> -e ANNC_CHANNEL_ID=<channel-id> botleeng:latest
Environment vars | Description |
---|---|
DISCORD_TOKEN |
Fetch token from a Discord application |
ANNC_CHANNEL_ID |
Copy Channel ID from Discord for the Announcement channel (enable Developer Mode) |
ADMIN_ROLE_ID |
Copy Role ID allowed to interact with the bot |