Channels
discord
discord bot integration
setup
- create a bot at discord.com/developers
- enable Message Content Intent under bot settings
- copy the bot token
- invite the bot to your server with message read/write permissions
[channels_config.discord]
token = "enc2:..."
allowed_guilds = ["your-guild-id"]
allowlist
# specific guilds only
allowed_guilds = ["123456789"]
# all guilds
allowed_guilds = ["*"]
how it works
baihu connects to the discord gateway via WebSocket and listens for messages mentioning the bot. responses are sent as replies in the same channel.