BaihuBaihu
Channels

discord

discord bot integration

setup

  1. create a bot at discord.com/developers
  2. enable Message Content Intent under bot settings
  3. copy the bot token
  4. 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.

On this page