config.json file or environment variables. Environment variables take precedence over config file values.
Environment Variables
The bot uses environment variables for core configuration. Create a.env file in the root directory or set these variables in your hosting environment.
Your Discord application client ID. Find this in the Discord Developer Portal under your application’s OAuth2 settings.
Your Discord bot token. Keep this secret and never commit it to version control.
Comma-separated list of guild (server) IDs where the bot is allowed to operate. Leave empty to allow all guilds.Example:
Discord user ID of the bot owner. Required for receiving DM-based performance alerts and admin commands.
Custom message shown when the bot is used in an unauthorized server (when
DISCORD_ALLOWED_GUILDS is set).Logging verbosity level. Options:
DEBUG, INFO, WARN, ERROREnable file-based logging in addition to console output.
Enable colored console output for logs. Set to
false to disable colors (useful for log aggregation systems).Configuration File
Alternatively, create aconfig.json file in the root directory:
Environment variables take precedence over
config.json values. This allows you to use the config file for defaults and override specific values with environment variables in production.Configuration Loading
The bot loads configuration in this order (utils/config.js:14-57):- Load
.envfile if present - Read
config.jsonif it exists - Override with environment variables
- Validate required fields (
clientIdandtoken)
Finding Your IDs
How to get your Client ID
How to get your Client ID
- Go to the Discord Developer Portal
- Select your application
- Navigate to OAuth2 → General
- Copy the Client ID
How to get your Bot Token
How to get your Bot Token
- Go to the Discord Developer Portal
- Select your application
- Navigate to Bot
- Click Reset Token (or Copy if you haven’t reset it yet)
- Save this token securely
How to get Guild IDs
How to get Guild IDs
- Enable Developer Mode in Discord (User Settings → Advanced → Developer Mode)
- Right-click on a server icon
- Click Copy Server ID
How to get your User ID
How to get your User ID
- Enable Developer Mode in Discord (User Settings → Advanced → Developer Mode)
- Right-click on your username
- Click Copy User ID
Starting the Bot
Once configured, start the bot:Next Steps
After initial setup, configure:- Channel destinations for raid signups
- Permissions for role-based access control
- Templates to customize raid types
- Server settings for reminders and automation