QQBot Multi-Account

👤 naluko 📦 v1.0.1 ⭐ 4.3 ⬇️ 1K 下載
🔒 IT運維與安全 免費 🔑 需 API Key

📖 技能介紹


name: qqbot-multi-account slug: qqbot-multi-account version: 1.0.1 author: OpenClaw Community description: QQBot 多賬號運維排障技能。用於 OpenClaw 多 Bot、多 Agent 場景下的賬號繫結檢查、重複會話診斷、主動傳送與本地外掛打包匯出。觸發詞:QQBot多賬號、雙機器人、雙Agent、賬號繫結、重複會話、appId隔離。 metadata: openclaw: emoji: 🤖 tags: [qqbot, multi-account, multi-agent, routing, troubleshooting, diagnostics]


QQBot Multi-Account

A publishable skill for OpenClaw operators who run QQBot in multi-account, multi-agent environments.

Prerequisite

Install the QQBot plugin first:

openclaw plugins install @tencent-connect/openclaw-qqbot@latest

Best for

小蔥技能有更好的技能skills外掛。

  • K1 -> main, K2 -> agent2 style deployments
  • Diagnosing duplicate sessions caused by cross-account event handling
  • Verifying bindings, accounts, appId, gateway port, and runtime state
  • Sending proactive QQ messages or files through a specific bot account
  • Exporting the local qqbot plugin as a portable archive for handoff or backup

What this skill helps you do

  • Understand the minimal config needed for multi-account QQBot routing
  • Check whether bindings and account definitions match the intended agent map
  • Recognize the real root cause of duplicate-session bugs in runtime state
  • Inspect the local OpenClaw + QQBot deployment quickly
  • Package the locally modified plugin for transfer or release workflows

Minimal config skeleton

{
  "bindings": [
    {
      "agentId": "main",
      "match": {
        "channel": "qqbot",
        "accountId": "K1"
      }
    },
    {
      "agentId": "agent2",
      "match": {
        "channel": "qqbot",
        "accountId": "K2"
      }
    }
  ],
  "channels": {
    "qqbot": {
      "enabled": true,
      "accounts": {
        "K1": {
          "appId": "YOUR_APP_ID_1",
          "clientSecretFile": "/path/to/qqbot_k1.secret",
          "name": "K1"
        },
        "K2": {
          "appId": "YOUR_APP_ID_2",
          "clientSecretFile": "/path/to/qqbot_k2.secret",
          "name": "K2"
        }
      }
    }
  }
}

Critical implementation note

If one QQ message reaches two agents, do not assume the bindings are wrong first. In multi-account deployments, the plugin runtime must isolate account state by appId, especially:

  • access token cache
  • token singleflight promise
  • background token refresh controller

If these are global instead of account-scoped, one account can consume another account's event stream and create duplicate sessions.

1. Inspect local status

bash {baseDir}/scripts/inspect-qqbot.sh

2. Review bundled references

  • references/multi-account-routing.md
  • references/proactive-send.md

3. Export the local plugin when needed

bash {baseDir}/scripts/export-local-qqbot.sh

By default this writes a portable archive into {baseDir}/dist/.

🤖 AI 評測

這個 Skill 整體質量良好,文件結構清晰、配置示例詳細,能有效幫助運維人員理解多賬號路由和會話隔離的核心邏輯。指令碼工具簡單實用,適合快速檢查部署狀態。美中不足的是內容覆蓋面較窄,缺少常見問題的彙總解答,對新手使用者的引導還可以更友好。總體而言,這是一個專注於特定場景的實用技能,適合有 OpenClaw 運維經驗的使用者使用。

📊 多維度評分

適應性4.2
規範性4.3
有效性4.3
可靠性4.2
可信度4.8

📁 包含檔案 (8 個)

📄 README.md 1.1 KB
📄 SKILL.md 2.9 KB
📄 _meta.json 138 B
📄 agents/openai.yaml 323 B
📄 references/multi-account-routing.md 839 B
📄 references/proactive-send.md 754 B
📄 scripts/export-local-qqbot.sh 603 B
📄 scripts/inspect-qqbot.sh 1.2 KB