FabricMC / kotlin-fabric-discord-bot

The discord bot previously used in the fabric discord server.
MIT License
5 stars 7 forks source link

The project has been continued by https://github.com/FabricMC/discord-bot

fabric-discord-bot

This bot is designed for a specific discord server, so it most likely will not fit the needs of your server.

Note: If you're testing the bot, make sure you have both privileged intents enabled for the OAuth app. See here for more information.

If you're using the bot via Docker, note that GIT_DIRECTORY will automatically be set to /git. You will most likely want to mount this directory.

Configuration

Note that the bot can be configured using a config file called config.toml instead if you prefer. The part of the environment variable name before the first underscore is the section you should use, and the rest is the camelCase key you should use within that section.

For example, you might do this in a bash script:

export CHANNELS_ACTION_LOG_CATEGORY=764817953463861288

In config.toml, you might do this:

[channels]
actionLog = 746875064200462416

You may also use system properties to configure the bot. Configuration takes the following order of precedence, with later sources overriding earlier ones:

Required Environment Variables

Optional Environment Variables