Coding

Discord Bridge

Try it

Bridge Discord messages to Agent Zero's HTTP API

What it does

Overview Bridges Discord messages to Agent Zero's api_message HTTP endpoint, enabling Discord users to interact with Agent Zero agents.

The skill document

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

  • Forward Discord messages from specific channels to Agent Zero
  • Handle async Discord bot events
  • Support command prefix filtering
  • Session-based message bridging

Input Variables

VariableDescriptionExample
{{DISCORD_BOT_TOKEN}}Discord bot authentication tokenBot token from Discord Developer Portal
{{A0_API_URL}}Agent Zero API endpointhttp://localhost:80/api_message
{{A0_API_KEY}}Agent Zero API authenticationmcp_server_token from settings
{{DISCORD_CHANNEL_IDS}}Comma-separated allowed channel IDs"123456789,987654321"
{{BOT_CMD_PREFIX}}Command prefix for bot commands"!"

Triggers

  • Discord on_message event
  • Filtered by ALLOWED_CHANNEL_SET (if configured)
  • Messages containing command prefix for special handling

APIs & Dependencies

  • discord.py: Discord bot framework
  • aiohttp: Async HTTP client for API calls
  • python-dotenv: Environment variable management

Files

  • index.py - Main Discord bot logic
  • .env.example - Environment template

Usage

# Install dependencies
pip install discord.py aiohttp python-dotenv

# Configure environment
cp .env.example .env
# Edit .env with your credentials

# Run the bridge
python index.py

Related skills

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.

by Iván535 installs31 stars

More from wespeakallday

Browse all skills

Twitch engagement via PizzaParty.gg - 4 daily sessions for LevelUpLove

by wespeakallday31 installs