From d7d33c39a405c52a25da8c387c35cb10cb5ff1e9 Mon Sep 17 00:00:00 2001 From: Claw Date: Mon, 4 May 2026 16:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=B8=AA=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=92=8C=E6=95=8F=E6=84=9F=E4=BB=A4=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - test.py: 2198972886 → your_admin_qq - README.md: jianf/qqrebot 链接 → 通用描述 - README.md: 示例配置 2198972886 → your_admin_qq --- README.md | 4 ++-- test.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b3709c..bdd704d 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ QQ 用户 ──→ NapCat (go-cqhttp) 需要以下系统已部署运行: -1. **[qqrebot](https://github.com/jianf/qqrebot)** — QQ 机器人框架,加载本插件 +1. **qqrebot** — QQ 机器人框架,加载本插件(参考 [chatrebot_plugen_support SDK](https://github.com/your-org/chat_rebot_plugen_support)) 2. **NapCat / go-cqhttp** — QQ 协议实现,转发消息给 qqrebot 3. **OpenClaw** — AI agent 网关 4. **qq-agent (或其他 agent)** — 在 OpenClaw 中配置,负责实际处理消息 @@ -43,7 +43,7 @@ QQ 用户 ──→ NapCat (go-cqhttp) [openclaw] gateway_url = "http://127.0.0.1:18789" # OpenClaw Gateway 地址 gateway_token = "你的gateway token" # 从 OpenClaw 配置获取 -allowed_sender = "2198972886" # 管理员 QQ 号 +allowed_sender = "your_admin_qq" # 管理员 QQ 号(替换为你自己的QQ号) model = "openclaw/qq-agent" # 使用的 agent 模型 agent_id = "qq-agent" # Agent ID ``` diff --git a/test.py b/test.py index 720721c..ff6f3f9 100644 --- a/test.py +++ b/test.py @@ -31,7 +31,7 @@ class OpenclawBridgeTest: # 模拟群聊消息上下文 mock_ctx = MessageContext( - uid="2198972886", + uid="your_admin_qq", gid="12345678", raw_message="你好", id="123456789",