dsh-qq-sticker
DiscoveredAdd meme sticker capability to the QQ bot integrated with DSH: sync favorites, search by emotion, send/add/delete, with a settings page and meme library lookup (OneBot v11, compatible with SnowLuma / NapCat).
dsh-qq-sticker
给 DeepSeek Harness 接入的 QQ 机器人加表情包能力:同步账号收藏表情、按情绪检索、以图片消息发出去,附带一个可视化设置页。 适用于任何 OneBot v11 网关(SnowLuma / NapCat / LLOneBot 等),不依赖 qq-bridge。
它解决什么
OneBot 没有"发收藏表情"的标准 action,但收藏表情本质就是一张图——发 image 段就是发表情包。
难点在另外三件事:拿到收藏列表、把表情 id 变成可下载的图、让模型知道什么时候该发哪个。
这个插件把这三件事做成工具交给模型,并给了一个管理界面。
安装
dsh plugin --profile desktop add dsh-qq-sticker
# 或本地开发:pnpm add link:/path/to/dsh-qq-sticker
装完重启一次 DSH(宿主半身和 MCP 行只在启动时挂载)。
MCP 的启动路径由插件内置的
-e启动器在运行时解析(依次尝试 cwd、$DSH_HOME/profiles/desktop、$DSH_HOME/profiles/web),所以不需要任何 postinstall,也不受 pnpm 11 忽略 build script 的影响。
配置
首次使用前创建 ~/.dsh/qq-sticker/config.json:
{
"onebot": { "url": "http://127.0.0.1:3000", "token": "你的 access token" },
"sync": { "count": 100 },
"send": { "maxPerMinute": 6, "autoProbability": 0 },
"autoDesc": {
"enabled": true,
"baseUrl": "https://api.siliconflow.cn/v1",
"apiKey": "sk-...",
"model": "Qwen/Qwen3-VL-8B-Instruct"
}
}
onebot.url/onebot.token:网关地址与 access tokenautoDesc:可选。配了才会用视觉模型自动起名(不配就用文件名/编号兜底)- 表情缓存:
~/.dsh/qq-sticker/stickers.json
工具(给模型用)
| 工具 | 作用 |
|---|---|
sticker_sync | 拉取账号收藏表情,合并进本地库 |
sticker_list | 按备注/id 搜索,返回 id + 备注(命中梗库的还带用法) |
sticker_send | 发到群或好友;表情是单独气泡,不能和文字合并 |
sticker_delete | 从 QQ 收藏里删除一张 |
meme_lookup | 查梗:本地 6668 条词库优先,没收录才联网 |
设置页
设置 → 表情包:
- 图库九宫格(缩略图走宿主代理,不会踩 QQ CDN 防盗链)
- 点一张 → 发送到指定群/好友,或删除
- 添加表情:网络地址 / 本地图片(≤5 MB)/ 本机路径(宿主直读)
- 不填备注时自动起名:文件名 → 视觉模型 → 梗库比对,并给备选名一键更换
- 两个滑块:每分钟上限、主动使用概率(目前只写配置,运行时限流待实现)
已知限制
- 网关必须支持
fetch_custom_face_detail,否则sticker_sync会报"返回不是数组" - 没有 url 的表情会按
emoji_id推导 QQ CDN 地址(gxh.vip.qq.com),个别表情仍可能 404 - 连发表情会触发 QQ 风控,建议自制频率上限
- 梗库(6668 条,MIT)来自 astrbot_plugin_memewiki,随仓库分发时请一并保留其许可
License
MIT
Comments
Loading…
Similar plugins
by YUsaltyfish
DeepSeek Harness 的原生 QQ 机器人插件:微内核 + 9 个子插件,Linux/Windows 通用。收消息、发图、生图、发表情,装完就能聊。
★ 4
MIT
JavaScript
Oct 25, 2026
dsh plugin --profile web add dsh-onebot-qqby belowthetree
qqbot 连接QQ机器人插件,方便易用,安装快捷
★ 0
MIT
TypeScript
Aug 30, 2026
dsh plugin --profile web add dsh-qqbotby Yuuyuko-uu
通到 QQ:DSH 里的 AI 伙伴和 QQ 双向互通 —— 它说完话自动发到 QQ,你在 QQ 说的话自动转进 DSH(走 OneBot 11 HTTP,NapCat / SnowLuma 都行)
★ 91
↓ 185/wk
MIT
JavaScript
Oct 26, 2026
dsh plugin --profile web add dsh-qq-bridgeby cheesehaqi
尝试为您自己搭建属于自己的QQ小助手吧 / Try building your own QQ assistant for yourself
★ 9
MIT
JavaScript
Oct 26, 2026
dsh plugin --profile web add dsh-qq-onebot-bridgeby hellodigua
让 AI 回复加入自定义表情,支持Bilibili、小红书、贴吧、知乎等多平台表情包,或自定义表情
★ 49
↓ 482/wk
MIT
TypeScript
Oct 22, 2026
dsh plugin --profile web add dsh-emojiby mario841859784
QQ channel for dsh via OneBot 11 (NapCat and friends): reverse or forward WebSocket, DM and group chats, image and voice transcription, t2i text-image cards, merged forwards, and a settings page.
★ 3
BSD-3-Clause
TypeScript
Oct 24, 2026
dsh plugin --profile web add @dsh-external/dsh-onebot