- docker
- docker-compose (usually installed with docker)
Create a .env
file with the following format:
NODE_ENV=
LOGGER_LEVEL=
DISCORD_TOKEN=
CLIENT_ID=
GUILD_ID=
NODE_ENV
can be one of the following:
prod
(recommended to run the bot)dev
test
LOGGER_LEVEL
can be one of the following:
info
(recommended to run the bot)debug
trace
fatal
error
warn
How to get DISCORD_TOKEN
, CLIENT_ID
and GUILD_ID
?
Add bot to server (replace CLIENT_ID
and GUILD_ID
):
https://discord.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot&guild_id=GUILD_ID$permissions=8
Applications settings: https://discord.com/developers/applications
8
npm run docker:compose:up
npm run docker:compose:down