π¦ ClawHub
Discord Bridge
by @wespeakallday
Bridge Discord messages to Agent Zero's HTTP API
TERMINAL
clawhub install discord-bridgeπ About This Skill
name: discord-bridge description: Bridge Discord messages to Agent Zero's HTTP API version: 1.0.1 author: Migration from Agent Zero
Discord Bridge Skill
Overview
Bridges Discord messages to Agent Zero's api_message HTTP endpoint, enabling Discord users to interact with Agent Zero agents.Purpose
Input Variables
| Variable | Description | Example | |----------|-------------|---------| |{{DISCORD_BOT_TOKEN}} | Discord bot authentication token | Bot token from Discord Developer Portal |
| {{A0_API_URL}} | Agent Zero API endpoint | http://localhost:80/api_message |
| {{A0_API_KEY}} | Agent Zero API authentication | mcp_server_token from settings |
| {{DISCORD_CHANNEL_IDS}} | Comma-separated allowed channel IDs | "123456789,987654321" |
| {{BOT_CMD_PREFIX}} | Command prefix for bot commands | "!" |Triggers
on_message eventAPIs & Dependencies
Files
index.py - Main Discord bot logic.env.example - Environment templateUsage
# Install dependencies
pip install discord.py aiohttp python-dotenvConfigure environment
cp .env.example .env
Edit .env with your credentials
Run the bridge
python index.py
π‘ Examples
# Install dependencies
pip install discord.py aiohttp python-dotenvConfigure environment
cp .env.example .env
Edit .env with your credentials
Run the bridge
python index.py