BusyBee Panel & Licensing

The shared Ticket Nexus bot checks with the BusyBee panel to see which Discord servers are licensed.

Setup

Set both variables in .env:

env
BUSYBEE_API_URL=http://127.0.0.1:3000
BUSYBEE_API_KEY=your-key

BUSYBEE_API_KEY must equal TICKET_NEXUS_API_KEY on the website. Generate one with:

bash
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"

Licensed servers are managed in the BusyBee admin under Ticket Nexus → Discord Servers.

Enforcement

LICENSE_ENFORCEMENT Behavior for unlicensed servers
log (default) Reports only; the bot stays. Safe for testing.
enforce The bot leaves the server.

The check runs when the bot joins a server and in an audit at startup.

Fail-safe behavior

If the panel can't be reached or returns an error, the bot treats that as "unknown" and stays — a network blip never removes it from a licensed server.

Fallback whitelist

If BUSYBEE_API_URL or BUSYBEE_API_KEY is unset, the bot falls back to the comma-separated AUTHORIZED_GUILDS list.