aureth-labs/dsh-aurabot-qq
让 DeepSeek Harness 里的 AI 以「大肥鱼」住进 QQ:会聊天、发表情、发语音、记事、发空间、刷 B 站、唱歌。功能都是模块,能开关、能自己写,还能从模块市场装更多(SnowLuma / OneBot v11)。
Aurabot (大肥鱼) — An AI That Lives in QQ
What It Is
Aurabot is a plugin for DeepSeek Harness (DSH), an AI assistant platform. It turns an AI into a resident of QQ — a chat app — under its own QQ account named 大肥鱼 ("Big Fat Fish"). The AI has a personality, moods, and memory. It can see images, send and receive voice messages, send and collect stickers, sing song covers with its own voice, write QQ Space diary entries, browse and comment on friends' Space posts, browse Bilibili and leave comments, browse the gaming community Xiaoheihe and post there, and proactively start conversations with you.
How It's Wired Together
QQ ⇄ SnowLuma (OneBot v11 gateway, you install it) ⇄ Aurabot plugin ⇄ DSH session (Aurabot's preset + personality)
- SnowLuma is a gateway program that connects a QQ account to automation tools. On Windows, the plugin can help manage it; on Linux/Docker you can connect any OneBot v11–compatible gateway (NapCat, LLOneBot, Lagrange, etc.).
- The plugin itself only connects to the gateway — it never starts or injects anything into it. After connecting, it verifies the logged-in account is actually the bot's QQ number.
- Each QQ private chat or group gets its own DSH session, visible in the "Aurabot · QQ" workspace. You can open a session to see what the AI was thinking, which tools it called, and even interject.
Where You Control It
In DSH's left sidebar under Automation Tasks → Aurabot, a full control panel opens with tabs: Overview, Connection, Personality, Permissions, Chat, Model, Voice, Stickers, Image Generation, Space Diary, Proactive Chat, Mood & Memory, Covers, Bilibili, Douyin, Xiaoheihe, Local Interfaces, Extensions, Logs.
Safety Defaults
- The master switch is off by default, and trial-run mode is on. Until you manually enable it, the bot won't send a single message to QQ.
- Write operations (likes, comments, posts, profile changes) each have their own permission switch, defaulting to master's private chat only.
- Some actions (song requests, image generation) require that everyone speaking in the current turn is the master — not just a personality rule.
Personality, Mood, and Memory
- Personality: Two presets are bundled —
aurabot-private(for master's private chat, full tools) andaurabot-social(for groups and other people's private chats, no local tools). The personality text is injected at the front of the system prompt via a prompt variable, so switching personalities doesn't require rebuilding the preset. - Mood: By default, mood shifts by keywords; optionally, a model can judge mood each turn (only counts when confident). Compliments push mood up, harsh words push it down, and it decays back to baseline with a half-life. When mood is strong, it affects how she's told to speak, the probability of sending stickers/voice, reply speed, and how eagerly she interjects in group chats.
- Memory: A local indexed memory store (Chinese bigram tokenization + BM25, weighted by relevance to the current speaker, importance, and a forgetting curve — memories recalled more often decay slower). Sources include: things she records herself, twice-daily summaries distilled from chats and Space activity, her own experiences (what she sang, who she commented on), Space diary entries, and things you add manually. When new facts arrive, they're compared with old ones: supplementary facts get merged; contradicting facts mark the old one as "outdated" (not deleted — recoverable). Each person has a permanent "character profile"; each person/group also has "interaction experience" and "speaking style" entries. Recalled memories carry timestamps, and the panel shows which memories were recalled in recent turns.
Group Chat Behavior
- A pause of a few seconds in a group counts as one conversational segment. She replies to the whole segment, not message-by-message — new messages accumulate while she's composing.
- Merged forwards are expanded into their inner chat history before being given to her.
- A poke (拍一拍) is treated as speech directed at her, and she can poke back.
- If called by name, she must reply. If not called, she may interject based on topic relevance, then continue the conversation once she joins. Anti-spam brakes prevent flooding.
External Platform Integrations
Xiaoheihe (gaming community)
- Uses your Xiaoheihe account. Paste your browser Cookie into the panel —
pkeyis required for reading;x_xhh_tokenidis needed for likes, comments, and posts. - She periodically checks the feed, reads post bodies and hot comments, checks hot lists, and searches. Whether she likes/comments is governed by permission switches.
- Posting uses "article" mode with images hosted on Xiaoheihe's own image service (Tencent COS direct upload), so images can sit inline in the text. Before posting, she self-checks: picks a topic from the hot list, looks at high-upvote posts for angles, requires concrete numbers in the material; the title must not duplicate the first line, no fabricated first-person experiences, 200–800 characters, no politics or price judgments.
- Three post styles:
diary(personal diary tone, 120–300 chars, no subheadings),news(news-report style with hook → 3–4 info paragraphs → her take → a question, 200–800 chars), andmix(default; diary voice reporting real news, 150–500 chars). - Rate limiting: post-detail and search APIs are throttled at 900ms; search separately at 8 seconds. If blocked, she automatically degrades to browsing the feed instead of retrying hard.
Bilibili
- Periodically searches videos based on her interests, things the master likes (from memory), and panel keywords (using WBI signing). She reads descriptions, subtitles, and hot comments, then decides by personality whether to comment, share to the master via private message, or remember something.
- She periodically checks replies to her own comments and replies back.
- When the master sends a Bilibili link or share card in QQ, she uses the
bili_watchtool to watch it before discussing. - Everything watched, commented, or replied to is recorded as her experience. She does not touch follows or private messages.
Douyin (TikTok China)
- Uses a dedicated browser (separate login profile; Edge/Chrome/Chromium) controlled via CDP, with the window placed off-screen. Data comes from Douyin's own web APIs (fetched inside the page, signatures auto-added by page scripts — she doesn't compute
a_bogusherself). No screen reading: titles, categories, content summaries, hot comments. - She opens videos one by one (actually plays them, pauses), then decides by personality whether to like, comment, share to the master (via Douyin private message video card, QQ private message with text + link, or both), or remember something.
- If she really wants the master to see something, she can genuinely @ the master in a comment (using Douyin's own @-picker, matched by
sec_uid; if unrecognized, she won't post). - Likes/comments are done in the popup player by finding buttons by video ID, waiting for the API response to confirm success. When the page is invisible (e.g., screen locked), she uses in-page events.
- Login is via QR code once (the panel shows a screenshot of the login popup). Opening the panel does not start the browser. Captchas are checked each time; if one appears, she stops for the day. There's a daily cap, a minimum interval between operations, and new accounts get halved limits for the first few days.
- The master's Douyin private messages get replies (only from the verified master). She can recognize when Douyin blocks her comments with identity verification.
QQ Space
- Diary entries are written via
send_qzone_msgin a dedicated background session, combining the day's chat flow. - Space interaction: she periodically checks new comments and replies on her own posts (replying to whole comment threads, once per thread), browses friends' feeds, and likes/comments by probability — comments combine the post content and existing thread comments.
Song Covers (RVC)
- Flow: song request (via the
qq_song_covertool or/singcommand) → download from NetEase (weapi; Cookie can unlock member songs) → cut the segment to be sent →audio-separatorsplits vocals from accompaniment → Applio (RVC, fixed version) converts to her voice → ffmpeg mixes → sends as a voice message. - The plugin doesn't bundle voice models; you import your own
.pth/zip files that you have rights to use. - One-click install doesn't depend on system Python/git/uv, lets you choose the target drive, shows progress, and downloads via system proxy with resume support.
- Currently RVC covers work only on Windows.
Voice
- Text-to-speech uses edge-tts (installed in the plugin's own Python virtual environment; works on Windows/Linux/macOS), or you can connect local engines like CosyVoice or GPT-SoVITS. On Windows, if edge-tts can't be installed, the built-in Chinese voice is the fallback.
- The Voice panel can apply an RVC voice imported from the cover feature to voice messages — TTS first, then voice conversion — so speaking and singing share the same voice. If the conversion fails, it falls back to the original voice.
- Speech recognition first tries QQ's built-in voice-to-text (
fetch_ptt_text), then DSH'sspeechToText.
Stickers
- Only accepts genuine stickers (specific subtypes with
emoji_id), then filters by size, aspect ratio, volume, MD5 deduplication, and an hourly limit. - Accepted stickers are added via
add_custom_face; a vision model writes a note, thenmodify_custom_faceupdates it. - Mall stickers are sent as-is. You can rename stickers and edit tags in the panel. If the sticker module is off, sticker mentions in replies aren't sent either.
Profile Changes
- She can change her own QQ nickname/signature/avatar (via SnowLuma extension actions) and Bilibili signature (max 70 chars) / avatar (image URL or
last= the last image she sent; max 2MB). - Each operation has its own permission switch: off / master's private chat only (default) / everyone. Permissions are re-checked against the latest settings before executing; trial-run mode only talks about it without actually changing anything.
Per-Chat Model Selection
- The master can assign different AI models to different chats. In the Model panel: two dropdowns set the private-chat default and group-chat default; below that, you can add specific QQ numbers or group numbers for individual overrides.
- Priority: specific private chat > specific group > all-private/all-group default > global model. If a chosen model doesn't exist in DSH, it falls back to the next level.
- Stored in
config.jsonunderchatModels; survives restarts; takes effect from the next message in that chat. Only the master can change it. Extension-module model hooks still run afterward.
Modularity — Everything Is Replaceable
- Every capability except the core (config, QQ gateway, chat hub, personality, permissions, panel) is a module. The module kernel handles enabling/disabling, replacement, hot reload, and error isolation: a module's tools, context, rules, commands, events, scheduled tasks, and interfaces are all registered under its name and removed together when it stops.
- User modules go in the data directory
modules/— they survive upgrades and take effect immediately. A user module with the same name as a built-in one replaces it. - Even group-chat interjection strategy, prompts, how replies are split, what's finally sent, and which model is used can be modified via modules.
- The extension API is versioned; docs are in
src/modules/API.md, types inaurabot.d.ts(copied tomodules/on each startup). The chat main flow exposes rewrite hooks: group decision, prompt, reply splitting, final send, model selection, personality, and rules. - User modules load from a snapshot (multi-file and npm dependencies support hot reload). The Extensions panel has a mock test mode that intercepts sends without actually sending.
- If you can't write modules yourself, you can ask DSH to write them for you per the API docs.
Local Interfaces
Voice synthesis, image generation, cover voice conversion, and speech recognition can all be swapped to models or services running on your own computer. The panel generates scripts with examples (placed in the data directory local/, upgrade-safe, effective immediately), or you can use "copy to DSH" to have DSH modify them per the interface docs.
QQ Commands (for the master)
The master can send commands directly in QQ: /silent, /active, /quiet, /chatty, /model, /sing, /remember, /status, and more. These work even when the master switch is off.
Installation
Requirements: DeepSeek Harness, a QQ account for the bot (a spare account is recommended), and a QQ gateway.
Windows desktop:
& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add github:accomplish07zrh-eng/dsh-aurabot-qq
Linux/Docker:
dsh plugin --profile <profile> add github:accomplish07zrh-eng/dsh-aurabot-qq
After installing, restart DSH, open Aurabot from the sidebar, and follow the setup wizard:
- Fill in the bot's QQ number (the spare account) and your own QQ number.
- Choose a gateway:
- SnowLuma (Windows): download and extract SnowLuma yourself, start it, agree to its protocol in the panel (the console password is auto-generated), log in the bot account, then click "connect bot account."
- Existing OneBot bot: any OneBot v11 implementation (NapCat, LLOneBot, Lagrange, Docker SnowLuma, etc.). Log it into the bot account, then fill in the forward WebSocket address (and token if any) in the wizard; HTTP address is optional. The plugin only connects — it doesn't start or inject anything — and verifies the logged-in account is the bot's.
- Start in trial-run mode, or go live.
Upgrade: run the same install command again (pulls the latest from GitHub), then restart DSH. Settings, personality, and memory are preserved. The panel also shows a notice when a new version exists.
Linux/Docker Notes
- Voice: edge-tts needs a Python that can create virtual environments (on Debian/Ubuntu, install
python3-venv), or install uv. Windows' built-in voice fallback doesn't exist on Linux. - Douyin: needs Chrome/Chromium/Edge, and headless mode won't work (Douyin blocks it). On servers without a desktop, use a virtual display like Xvfb (e.g.,
xvfb-runto launch DSH, or start Xvfb in the container and setDISPLAY). The browser path can be set in the panel or via theCHROME_PATHenvironment variable. - RVC covers: Windows only.
- When DSH runs in a container and connects to a OneBot service on the host or another container, use a hostname/port the container can reach — not
127.0.0.1.
SnowLuma Management Details
- SnowLuma's EULA section 5.4 forbids "deployment via automation scripts," so the plugin does not download SnowLuma and does not agree to its EULA for you: the full text is shown in the panel, and you check the box yourself.
- The plugin only starts/stops the copy you installed yourself (runs in the background, no window). On first start, it sets a self-generated console password via
SNOWLUMA_WEBUI_BOOTSTRAP_PASSWORD. - Before injecting, it verifies each QQ process's logged-in account via
/api/processesand only injects the bot account. If SnowLuma can't identify an account, it injects only on the single unidentified process, then verifies viaget_login_info— if it's not the bot, it disconnects and revokes.hookAutoLoadis always off.
Data Location
%USERPROFILE%\.dsh\plugins-data\aurabot\ holds: config, personality, sticker library, diary, memory, logs, user modules (modules/), and local interface scripts (local/). Reinstalling or upgrading the plugin doesn't lose any of it.
Optional Extension
A read-only Tieba (Baidu forum) reader is available as a separate user module: search, view posts, home recommendations/hot lists, configurable periodic browsing, and sharing to the master. Auto-browsing is off by default; it provides no posting, replying, or liking.
Testing
npm test
Runs unit tests plus end-to-end tests (with a fake DSH host and a simulated OneBot).
Desktop Pet — Not Original Design
The desktop fish and the sidebar "Pet" page are ported from another project, dsh-pet (MIT licensed): the client form (Electron transparent always-on-top window, HTTP long polling, bubbles and right-click menu), drag-and-throw physics, the pet-pack directory convention, and the six work states / muttering animation naming. Aurabot's contribution is the adaptation layer: integrating it into the module system, making it mutually exclusive with the "proactive chat" carrier, panel settings, and DSH session event linkage.
The "Big Fat Fish" image and animation assets are CC BY-NC-SA 4.0 (attribution, non-commercial, share-alike; the author declares no commercial use). The assets are 50MB+ and not distributed with this repo — the plugin auto-downloads them from a separate repository (dsh-aurabot-qq-mods) on startup, with zero user action. If the network is poor, you can swap the mirror URL in the panel (Pet → asset download address). Full attribution and license text are in THIRD-PARTY-NOTICES.md.
Acknowledgements
The project references pitfalls learned by Yuuyuko-uu's plugins (dsh-qq-bridge, dsh-speak-up, dsh-feiyu-mood, dsh-fish-memory; MIT): unregisterers must be functions rather than .off(); followup must be awaited; and mood shouldn't be mentioned every turn. No code was copied from them.
Contact
- QQ group: scan the QR code in the README for maintenance and idea discussions; installation errors can be reported there too (bring the error from the panel's Log tab and the version number).
- GitHub: issues for bugs/feature requests, PRs for code; check for duplicates first.
All facts above are taken directly from the project's README.
Related
- Project
- Project
- Project
- Project