IAA BOT
IAA BOT Environment and Buyer Configuration
Configure every IAA BOT environment variable, role ID, and workflow channel.
Environment variables#
| Setting | What to enter | What it controls |
|---|---|---|
DISCORD_BOT_TOKEN | YOUR_BOT_TOKEN | Private Discord bot token. |
DISCORD_APPLICATION_ID | YOUR_APPLICATION_ID | Discord application ID. |
IAA_GUILD_ID | YOUR_IAA_GUILD_ID | Guild containing Internal Affairs staff and workflows. |
MAIN_GUILD_ID | YOUR_MAIN_GUILD_ID | Primary community guild. |
MAIN_MEMBER_ROLE_ID | YOUR_ROLE_ID | Role identifying members in the main guild. |
COMMUNITY_NAME | Your Community | Name displayed in supported output. |
SITE_BASE_URL | https://YOUR_DOMAIN | Public website origin. |
IAA_API_BASE_URL | https://YOUR_DOMAIN/api/server/backend/intel/iaa | Secured API base URL. |
IAA_STAFF_PORTAL_URL | https://YOUR_DOMAIN/server/backend/intel/iaa | Staff portal link. |
IAA_STAFF_ROLES_URL | https://YOUR_DOMAIN/server/backend/intel/iaa/staffroles | Staff-role management link. |
IAA_AUTHORIZE_URL | https://YOUR_DOMAIN/server/backend/intel/iaa/public/authorize | Public authorization entry URL. |
IAA_API_KEY | YOUR_API_KEY | Bearer credential used by the bot. |
IAA_API_SIGNING_SECRET | YOUR_SIGNING_SECRET | Separate secret used for HMAC SHA256 signatures. |
AUTH_LOG_CHANNEL_ID | YOUR_CHANNEL_ID | Authorization log destination. |
LOOKUP_LOG_CHANNEL_ID | YOUR_CHANNEL_ID | Lookup audit log. |
SECURITY_LOG_CHANNEL_ID | YOUR_CHANNEL_ID | Security event log. |
REVIEW_LOG_CHANNEL_ID | YOUR_CHANNEL_ID | Review workflow log. |
HTTP_TIMEOUT_SECONDS | Reasonable positive number | Backend request timeout. |
PERMISSION_CACHE_SECONDS | Reasonable positive number | Staff-access cache duration. |
COMMAND_SYNC_ON_START | true or false | Controls command synchronization during startup. |
LOG_LEVEL | INFO | Application logging level. |
buyer_config.json#
role_ids maps local staff functions to numeric Discord role IDs. workflow_channels maps workflow names to numeric Discord channel IDs. A value of 0 represents an unconfigured local role or channel where supported; configure required values before enabling the related workflow.
| Workflow channel | Purpose |
|---|---|
| BLACKLIST_REQUESTS | Discord destination for the blacklist requests workflow. |
| BLACKLISTED_SERVERS | Discord destination for the blacklisted servers workflow. |
| BLACKLISTED_USERS | Discord destination for the blacklisted users workflow. |
| NO_POACH | Discord destination for the no poach workflow. |
| POACH | Discord destination for the poach workflow. |
| RECRUITMENTS | Discord destination for the recruitments workflow. |
| MERGES | Discord destination for the merges workflow. |
| STAFF_INVESTIGATIONS | Discord destination for the staff investigations workflow. |
| ALT_PENDING | Discord destination for the alt pending workflow. |
| ALT_LOGS | Discord destination for the alt logs workflow. |
| PUNISHMENT_COMMAND_CHANNEL | Discord destination for the punishment command channel workflow. |
| PUNISHMENT_LOW | Discord destination for the punishment low workflow. |
| PUNISHMENT_HIGH | Discord destination for the punishment high workflow. |