← 返回 Skills 市场
wespeakallday

Discord Bridge

作者 Carl Luis Olivier · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
434
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install discord-bridge
功能描述
Bridge Discord messages to Agent Zero's HTTP API
使用说明 (SKILL.md)

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

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

  • 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
安全使用建议
Before installing, understand that this skill will forward Discord message text to whatever A0_API_URL you configure and include the A0_API_KEY in each request. To reduce risk: (1) only run it against an Agent Zero endpoint you control or trust; (2) explicitly set DISCORD_CHANNEL_IDS to a small list of allowed channel IDs — if you leave it empty the bot will forward messages from all channels; (3) create a scoped API key for the bridge rather than using a high-privilege token; (4) run the code in an isolated environment and review index.py yourself (it’s short and readable); (5) update registry metadata to declare required env vars so others can audit easily; and (6) be aware Discord's message_content intent is privileged and may require bot verification. If you need help auditing or hardening (e.g., adding message filtering, logging controls, or encryption), get a developer to review and modify the code before deploying.
功能分析
Type: OpenClaw Skill Name: discord-bridge Version: 1.0.1 The skill bundle implements a standard Discord-to-API bridge as described in SKILL.md. The code in index.py uses discord.py and aiohttp to forward messages to a user-configurable endpoint (A0_API_URL) and returns the response to the Discord channel. No evidence of data exfiltration, malicious execution, or prompt injection was found; sensitive credentials like the Discord token and API key are handled appropriately for the stated purpose.
能力评估
Purpose & Capability
The code and SKILL.md match the stated purpose (forward Discord messages to Agent Zero's /api_message endpoint). However the registry metadata declares no required environment variables or primary credential even though the SKILL.md and index.py clearly expect DISCORD_BOT_TOKEN and A0_API_KEY (and other envs). This metadata mismatch is inconsistent and should be corrected.
Instruction Scope
Runtime instructions and the code forward message.content (user messages) plus the configured A0_API_KEY to an external HTTP endpoint. Critically, if DISCORD_CHANNEL_IDS is not set, the bridge will not restrict channels (ALLOWED_CHANNEL_SET empty → messages from all channels are forwarded). That behavior can leak sensitive channel content unless the operator explicitly configures allowed channel IDs.
Install Mechanism
There is no binary download/install spec; SKILL.md instructs pip installing common Python packages (discord.py, aiohttp, python-dotenv) and running index.py. This is a low-risk install mechanism but it does execute code provided in the package locally.
Credentials
The environment variables the skill needs (DISCORD_BOT_TOKEN, A0_API_URL, A0_API_KEY, DISCORD_CHANNEL_IDS, etc.) are reasonable for the stated purpose. But the registry declares no required env/primary credential, which is inconsistent and reduces transparency. Also A0_API_KEY is sent in each request to the external API — ensure that key is scoped and trusted, since it will be transmitted in plaintext in the JSON payload.
Persistence & Privilege
The skill is a user-invocable long-running bot (normal). It does not request 'always: true' or modify other skills or system-wide configs. It requires the message_content intent (discord) which is expected for reading messages.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install discord-bridge
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /discord-bridge 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Bumped version to 1.0.1 in SKILL.md. - No functional changes; only documentation updated.
v1.0.0
Initial publish
元数据
Slug discord-bridge
版本 1.0.1
许可证
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Discord Bridge 是什么?

Bridge Discord messages to Agent Zero's HTTP API. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 434 次。

如何安装 Discord Bridge?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install discord-bridge」即可一键安装,无需额外配置。

Discord Bridge 是免费的吗?

是的,Discord Bridge 完全免费(开源免费),可自由下载、安装和使用。

Discord Bridge 支持哪些平台?

Discord Bridge 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Discord Bridge?

由 Carl Luis Olivier(@wespeakallday)开发并维护,当前版本 v1.0.1。

💬 留言讨论