返回技能列表
onebot-adapter
由 gu-heping 提供
Coding Agents & IDEs—暂无评分
你的评分
简介
Connect OpenClaw to OneBot protocol for QQ bot integration.
描述
该技能的功能
Bridges OpenClaw to OneBot protocol servers for QQ bot functionality. Supports WebSocket for real-time bidirectional messaging and HTTP for simple send operations. Handles both private and group QQ messages.
OneBot is a standardized protocol, so this adapter works with any compliant server without tying you to a proprietary QQ API.
何时使用
- Sending automated QQ notifications to individual users
- Routing QQ group messages to an AI agent for replies
- Polling friend and group lists for contact sync
- Triggering QQ messages from external workflows or scripts
- Monitoring QQ group events in real time via WebSocket
示例工作流
输入
User asks: Send 'Meeting in 10 minutes' to QQ group 789012
智能体
- 1
Initialize OneBotClient with configured HTTP URL and token
- 2
Call send_group_msg with group_id=789012 and the message text
- 3
Check response for delivery confirmation
- 4
Return success status to user
输出
Message delivered to QQ group 789012
前置要求
- NapCat or other OneBot-compatible server installed and running
- QQ account configured with the OneBot server
- ONEBOT_WS_URL environment variable
- ONEBOT_HTTP_URL environment variable
- ONEBOT_TOKEN environment variable (if authentication is enabled)
安装
clawhub install gu-heping/onebot-adapter运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。