Skip to main content

Discord

Setup

1. Create a Bot

2. Enable Intents

  • In Bot settings, enable MESSAGE CONTENT INTENT
  • (Optional) Enable SERVER MEMBERS INTENT for member-based allow lists

3. Get Your User ID

  • Discord Settings → Advanced → enable Developer Mode
  • Right-click your avatar → Copy User ID

4. Configure

{
"channels": {
"discord": {
"enabled": true,
"token": "YOUR_BOT_TOKEN",
"allow_from": ["YOUR_USER_ID"],
"mention_only": false
}
}
}
FieldTypeDescription
enabledboolEnable/disable the channel
tokenstringBot token from Discord Developer Portal
allow_fromarrayList of allowed user IDs (empty = allow all)
mention_onlyboolOnly respond when @-mentioned

5. Invite the Bot

  • OAuth2 → URL Generator
  • Scopes: bot
  • Bot Permissions: Send Messages, Read Message History
  • Open the generated invite URL and add the bot to your server

6. Run

picoclaw gateway

Mention-Only Mode

Set "mention_only": true to make the bot respond only when @-mentioned. Useful for shared servers where you want the bot to be less intrusive.