Caspian connect Discord
Connect Discord to Caspian and enable discord in the plugin admit list
(channels in ~/.config/opencode/caspian.json). Without discord in
channels, Discord events are rejected at admit (blast-radius wall).
Connect is non-CP (failures must not kill the email/telegram listen loop). Admit reload requires restart OpenCode.
When to use
- User asks to connect Discord
- User runs
/caspian:connect-discordor/caspian-connect-discord
How
Call
caspian_connections.Call
caspian_connect_discord.- Default: one-click
installDiscord()if noDISCORD_BOT_TOKEN - Or BYO:
DISCORD_BOT_TOKENin.env/caspian.env preferInstall: trueforces OAuth install even with a token
- Default: one-click
If an Authorize URL is returned, tell the user to open it and invite the bot to their server. Wait until connection status is
active.If RESTART REQUIRED, say clearly:
Restart OpenCode so admit loads
discordinchannels. Until then, Discord messages are rejected at the blast-radius wall.Never store the bot token in
caspian.json.