/discord-guardbot

A captcha guardbot built with bun

Primary LanguageTypeScript

discord-guardbot

To install dependencies:

bun install

To run:

bun run index.ts

Docker

docker run eslym/discord-guardbot

Or download the prebuilt executable from releases.

Dependencies

  1. bun
  2. this simple captcha generator

All dependencies are included in dev container and docker image.

Configuration

Via config file

# config.yml
discord:
    token: 'your token'
guardbot --config config.yml # or config.json

Via environment variables

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

Via command line arguments

guardbot --config.discord.token 'your token'
guardbot --config.file config.yml --config.discord.token 'your token' # with config file

Priority

Config file < Environment variables < Command line arguments