Complete Discord integration for Clawdbot with automatic UI installation. This skill provides everything needed for Discord bot connectivity including:
This skill automatically installs all necessary components:
# Install via agent
Install the discord-connect-hub skill from ClawHub
The skill will automatically:
Go to OAuth2 → URL Generator:
bot + applications.commands Option A: Dashboard (Recommended)
Option B: Config File
channels:
discord:
botToken: "YOUR_BOT_TOKEN"
# Or with OpenBao:
# botToken: "bao:channels/discord#bot_token"
This skill includes hooks for the Clawdbot plugin architecture:
install/navigation.js - Adds Discord tab to dashboardinstall/rpc-handlers.js - Registers Discord RPC methods install/ui-components.js - Installs UI views and templatesinstall/config-defaults.js - Sets up default configurationhooks/post-install.js - Post-installation setup and verificationhooks/pre-uninstall.js - Cleanup before removalhooks/config-updated.js - Responds to configuration changesThe skill declares its capabilities for the plugin system:
discord tab with navigation and routingdiscord messaging channel| Method | Description |
|---|---|
| -------- | ------------- |
discord.status | Get bot connection status and user info |
discord.health | Run comprehensive health checks |
discord.guilds | List connected Discord servers |
discord.guild | Get detailed server information |
discord.channels | List channels in a server |
discord.invite | Generate bot invite URLs |
discord.testToken | Validate token without saving |
discord.setToken | Store and activate bot token |
discord.permissions | Check bot permissions |
channels:
discord:
# Required
botToken: "YOUR_BOT_TOKEN"
# Guild restrictions (optional)
guilds:
"SERVER_ID":
enabled: true
channels:
"CHANNEL_ID":
enabled: true
requireMention: false
# Global behavior
requireMention: true # Require @mention in servers
dmPolicy: "pairing" # DM handling: pairing|open|closed
groupPolicy: "open" # Server handling: open|mention|closed
# Advanced options
retryAttempts: 3
heartbeatInterval: 30000
reconnectDelay: 5000
Automatic diagnostics include:
"Invalid token" errors:
Bot not responding in channels:
requireMention setting (try @mentioning)Dashboard not loading:
clawdbot gateway restart# Check Discord connection logs
clawdbot logs | grep discord
# Test token independently
python scripts/test-token.py YOUR_TOKEN
discord-connect-hub/
├── SKILL.md # This skill guide
├── scripts/
│ ├── test-token.py # Token validation utility
│ ├── install-plugin.js # Plugin installation script
│ └── health-check.py # Diagnostic tool
├── references/
│ ├── discord-api.md # Discord API documentation
│ ├── bot-setup.md # Detailed setup guide
│ └── troubleshooting.md # Extended troubleshooting
└── assets/
├── discord-backend.ts # RPC handler implementation
├── discord-views.ts # UI component templates
├── navigation-hooks.js # Navigation registration
├── install-hooks.js # Installation automation
└── config-schema.json # Configuration validation
If automatic installation isn't possible, the skill provides detailed manual instructions similar to the original discord-connect skill.
共 1 个版本