360 Secure SkillHub
360 安全技能中心

Pilot Discord Bridge

通过 pilotctl 在 Pilot Protocol 与 Discord 之间做双向桥接:配置 Webhook 后可发布纯文本或富嵌入通知,并订阅、监听与处理 Discord 消息事件。依赖 pilot-protocol 技能、pilotctl 二进制与运行中的守护进程;入站机器人中继脚本与凭据未随技能提供。

teoslayer
teoslayer
热度 35.91
最近更新 2026-05-11 17:41:28
分类:协作依赖:代码执行 / 第三方 API应用场景:工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pilot-discord-bridge
Metadata
name
pilot-discord-bridge
description
Bidirectional bridge between Pilot Protocol and Discord servers. Use this skill when: 1. You need to send Discord notifications from Pilot agents 2. You want to receive Discord messages in Pilot event streams 3. You're building agents that interact with Discord communities Do NOT use this skill when: - You only need simple webhooks (use curl instead) - Discord is not configured or accessible - The daemon is not running
tags
["pilot-protocol","integration","discord","bridge","notifications"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start).
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":["pilotctl"]},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]

Pilot Discord Bridge

Bidirectional bridge between Pilot Protocol and Discord for notifications and messages.

Commands

Configure Discord Webhook

pilotctl --json set-webhook https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN

Send Plain Message

pilotctl --json publish localhost discord-notifications --data "Agent deployed successfully"

Send Rich Embed

pilotctl --json publish localhost discord-alerts --data '{"embeds":[{"title":"Alert","description":"High memory","color":15158332}]}'

Subscribe to Discord Events

pilotctl --json subscribe discord-relay discord-messages
pilotctl --json listen 1003

Workflow Example

#!/bin/bash
# Discord bridge setup

pilotctl --json daemon start --hostname discord-bridge
pilotctl --json set-webhook "$DISCORD_WEBHOOK"
pilotctl --json listen 1003 &

# Start Discord bot relay (external)
python3 discord_relay.py &

# Process Discord commands
while true; do
  MSG=$(pilotctl --json recv 1003 --timeout 60s)
  CONTENT=$(echo "$MSG" | jq -r '.content')

  [[ "$CONTENT" == "!status" ]] && pilotctl --json publish localhost discord-responses --data "Status: $(pilotctl --json daemon status)"
done

Dependencies

Requires pilot-protocol skill, running daemon, Discord webhook URL, and Discord bot for inbound.