Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
# Discord
Give an agent a Discord bot, so channel messages, mentions, reactions, and
direct messages reach them and they can answer in Discord.
The `discord` extension is off by default. Open `/extensions` in the terminal or
web client and enable `discord` before adding a bot.
## Create a Discord bot
1. Open the Discord Developer Portal and create an application.
2. Under **Bot**, create a bot user and copy its token.
3. Under **Privileged Gateway Intents**, enable **Message Content Intent**.
Albedo connects with guilds, messages, message reactions, direct messages,
and message content intents. Without **Message Content Intent**, Discord
closes the gateway with code `4014` (`disallowed intents`).
4. Copy your own Discord user ID (a 15–22 digit number; enable **Developer
Mode** in Discord's advanced settings, then copy your user ID from your
profile).
## Add and invite a bot
Open `/discord` in the terminal or web client and create a bot with:
- **Name**: a label shown in `/discord`.
- **Session**: the persistent session the bot belongs to. One session can have
at most one bot.
- **Token**: the bot token from the Discord Developer Portal. Tokens are stored
write-only and never read back to clients.
- **Your Discord user ID**: you are always allowed to DM the bot.
Once created, the bot card shows its status (`off`, `connecting`, `online`,
`reconnecting`, or `failed`) and an invite link (`Copy invite`) using the bot's
application ID with `scope=bot`. Open that link to add the bot to a server.
## Configure channels and delivery
Expand **Channels and DMs** on a bot card to see the servers and text channels
the bot can read. Each channel has a delivery mode and a mentions toggle:
| Setting | Behavior |
| --------------------- | --------------------------------------------------------------------------------------------------------------- |
| `ignored` | Messages a…