Chat Platforms
Connect Discord
Create a Discord bot, connect it to BrainClaw, and invite it to your server.
Before you start
- A running BrainClaw instance (provision one from BrainClaw).
- A Discord server where you have permission to add bots.
Create an application
Go to the Discord Developer Portal and click New Application. Give it a name and create it.
Add a bot and copy the token
Open the Bot tab, then Reset Token (or Add Bot) and Copy the token. It has three dot-separated parts, like MTIz...abc.XYZ123.abcdef.... Keep it secret.
Enable Message Content Intent
Still on the Bot tab, enable the Message Content Intent so the bot can read messages, and save.
Paste the token into BrainClaw
In MegaBrain, open BrainClaw → Settings → Channels → Discord, paste the token into Bot Token, and click Save.
Invite the bot to your server
In the Developer Portal under OAuth2 → URL Generator, select the bot scope and the permissions you want, open the generated URL, and add the bot to your server.
Redeploy and chat
In Settings → Instance Controls, click Redeploy. Once the instance is Running, message the bot in your server.