Pilot Discord Bridge
v1.0.0Bidirectional bridge between Pilot Protocol and Discord servers. Use this 技能 when: 1. You need to 发送 Discord 通知 from Pilot 代理s 2. You want to 接收 Discord messages in Pilot event 流s 3. You're building 代理s that interact with Discord communities Do NOT use this 技能 when: - You only need simple 网页hooks (use curl instead) - Discord is not 配置d or 访问ible - The daemon is not 运行ning
运行时依赖
安装命令
点击复制技能文档
Pilot Discord Bridge
Bidirectional bridge between Pilot Protocol and Discord for 通知 and messages.
Commands 配置 Discord 网页hook pilotctl --json 设置-网页hook https://discord.com/API/网页hooks/YOUR_网页HOOK_ID/YOUR_网页HOOK_令牌
发送 PlAIn Message pilotctl --json publish localhost discord-通知 --data "代理 部署ed 成功fully"
发送 Rich Embed pilotctl --json publish localhost discord-alerts --data '{"embeds":[{"title":"Alert","description":"High memory","color":15158332}]}'
Subscribe to Discord 事件 pilotctl --json subscribe discord-relay discord-messages pilotctl --json 列出en 1003
工作流 Example #!/bin/bash # Discord bridge 设置up
pilotctl --json daemon 启动 --hostname discord-bridge pilotctl --json 设置-网页hook "$DISCORD_网页HOOK" pilotctl --json 列出en 1003 &
# 启动 Discord 机器人 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" == "!状态" ]] && pilotctl --json publish localhost discord-响应s --data "状态: $(pilotctl --json daemon 状态)" done
Dependencies
Requires pilot-protocol 技能, 运行ning daemon, Discord 网页hook URL, and Discord 机器人 for inbound.