To install dependencies:
bun install
To run:
bun run index.ts
Docker
docker run eslym/discord-guardbot
Or download the prebuilt executable from releases.
All dependencies are included in dev container and docker image.
# config.yml
discord:
token: 'your token'
guardbot --config config.yml # or config.json
export GUARDBOT_DISCORD_TOKEN='your token'
guardbot
Path Conversion:
GUARDBOT_
+ {path}
+ _
+ {subpath}
, ex:
GUARDBOT_DISCORD_TOKEN
->discord.token
GUARDBOT_GUILD_{ID}_ROLE
->guild.{ID}.role
guardbot --config.discord.token 'your token'
guardbot --config.file config.yml --config.discord.token 'your token' # with config file
Config file < Environment variables < Command line arguments