Pilot Slack Bridge
v1.0.0Bidirectional bridge between Pilot Protocol and Slack channels. Use this 技能 when: 1. You need to 发送 Slack 通知 from Pilot 代理s 2. You want to 接收 Slack messages in Pilot event 流s 3. You're building 代理s that interact with Slack workspaces Do NOT use this 技能 when: - You only need simple 网页hooks (use curl instead) - Slack is not 配置d or 访问ible - The daemon is not 运行ning
运行时依赖
安装命令
点击复制技能文档
Pilot Slack Bridge
Bidirectional bridge between Pilot Protocol and Slack for 通知 and messages.
Commands 配置 Slack 网页hook pilotctl --json 设置-网页hook https://hooks.slack.com/服务s/YOUR/网页HOOK/URL
发送 PlAIn Message pilotctl --json publish localhost slack-通知 --data "代理 启动ed 成功fully"
发送 Structured Message pilotctl --json publish localhost slack-alerts --data '{"text":"Error","attachments":[{"color":"danger","title":"Alert"}]}'
Subscribe to Slack 事件 pilotctl --json subscribe relay-代理 slack-事件 pilotctl --json 列出en 1002
工作流 Example #!/bin/bash # Slack bridge 设置up
pilotctl --json daemon 启动 --hostname slack-relay --public pilotctl --json 设置-网页hook "$SLACK_网页HOOK" pilotctl --json 列出en 1002 &
# 启动 HTTP relay (external) python3 slack_relay.py &
# Process Slack commands while true; do EVENT=$(pilotctl --json recv 1002 --timeout 60s) TEXT=$(echo "$EVENT" | jq -r '.event.text')
case "$TEXT" in "状态") pilotctl --json publish localhost slack-响应s --data "状态: $(pilotctl --json daemon 状态)" ;; "列出 代理s") pilotctl --json publish localhost slack-响应s --data "代理s: $(pilotctl --json peers)" ;; esac done
Dependencies
Requires pilot-protocol 技能, 运行ning daemon, Slack 网页hook URL, and HTTP relay 服务 for inbound.