gushiaoke/dsh-qq-bot

gushiaoke★ 0TypeScript最后同步: 2026-08-14

在 GitHub 打开

QQ Bot integration for DeepSeek Harness: qq_send_message tool + inbound WebSocket agent driving

README 摘要

dsh-qq-bot English 中文 The model-facing qq send message tool pushes a text message to a QQ single-chat user or group through the QQ Bot open API ( api.bot.qq.com ). With inbound: true it also drives agents from inbound QQ messages over the WebSocket gateway. It is an implementation package — it registers one tool into ctx.tools , it does not own ctx.tools and registers no service key. What it does Registers qq send message(channel, openid, content, format?) on ctx.tools . channel is "user" for a single chat (target = user openid) or "group" for a group chat (target = group openid). format is "text" (default) or "markdown" . A call obtains an Access Token ( POST /app/getAppAccessToken with AppID/AppSecret) and sends the message ( POST /v2/users/{openid}/messages or /v2/groups/{openid}/messages , Authorization: QQBot ; body { content, msg type: 0 } for text, { markdown: { content }, msg type: 2 } for Markdown). The Access Token lives 2 hours; QqBotClient caches it and refreshes within a 60-second window before expiry. Markdown supports QQ's documented subset — headings, bold/italic/strikethrough, links, images (public URL), ordered/unordered lists, blockquotes, and horizontal rules; c…

在 GitHub 查看完整 README →
Agentsdsh-pluginagent

分类