dannytranlx / botleeng-discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

botleeng-discord

Development

  1. Clone the repo
  2. Install dependencies
$ npm install
  1. Make a copy of config/local.template.js into config/local.js and fill up the vars
$ cp config/local.template.js config/local.js
  1. 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

About


Languages

Language:JavaScript 96.2%Language:Dockerfile 3.8%