Environment Variables
All secrets and hosting settings live in .env (copy .env.example). Never commit it — it is gitignored.
Discord
| Variable | Description |
|---|---|
DISCORD_TOKEN |
Bot token from the Developer Portal's Bot tab. |
CLIENT_ID |
Application (client) ID. |
Database
| Variable | Description | Default |
|---|---|---|
DB_TYPE |
sqlite or mysql. |
sqlite |
DB_HOST |
MySQL host. | — |
DB_USER |
MySQL user. | — |
DB_PASSWORD |
MySQL password. | — |
DB_NAME |
MySQL database name. | — |
DB_PORT |
MySQL port. | 3306 |
See Database Setup.
BusyBee panel
| Variable | Description | Default |
|---|---|---|
BUSYBEE_API_URL |
Base URL of the BusyBee panel. | — |
BUSYBEE_API_KEY |
Bearer key. Must match TICKET_NEXUS_API_KEY on the website. |
— |
LICENSE_ENFORCEMENT |
log (report only) or enforce (leave unlicensed servers). |
log |
AUTHORIZED_GUILDS |
Comma-separated guild IDs; fallback whitelist used only when the API variables are unset. | — |
See BusyBee Panel & Licensing.
Health check
| Variable | Description | Default |
|---|---|---|
HEALTH_CHECK_PORT |
Port for the /health endpoint. |
SERVER_PORT if set, else 3001 |
HEALTH_CHECK_HOST |
Bind address. | 0.0.0.0 |
See Health Monitoring.