Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

onebot-adapter

bởi gu-heping

Coding Agents & IDEs
308Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Connect OpenClaw to OneBot protocol for QQ bot integration.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

User asks: Send 'Meeting in 10 minutes' to QQ group 789012

AGENT
  1. 1

    Initialize OneBotClient with configured HTTP URL and token

  2. 2

    Call send_group_msg with group_id=789012 and the message text

  3. 3

    Check response for delivery confirmation

  4. 4

    Return success status to user

ĐẦU RA

Message delivered to QQ group 789012

Yêu cầu

  • 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)

Cài đặt

clawhub install gu-heping/onebot-adapter

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết