Preface¶
Conclusions chatted with an AI partner in DSH often stay within the desktop client; however, for daily collaboration and casual follow-up questions, many people prefer to do it via QQ private chats or group chats. Chatting on both sides separately requires repeated copy-pasting or setting up an independent QQ bot stack.
The dsh-qq-bridge introduced below (repository Yuuyuko-uu/dsh-qq-bridge) takes a different path: it doesn’t touch the QQ protocol itself but communicates only via a local OneBot 11 HTTP interface and an existing QQ backend (SnowLuma or NapCat). After the partner finishes the last sentence of a full turn in DSH, it can be automatically sent to QQ; new text messages you send in QQ are also polled by the plugin and forwarded into your specified DSH session to start a turn as usual. The maintainer is Yuuyuko-uu, categorized as a “Networking Tool” on the community directory SkillHub, with the current marked version being v0.2.0 (MIT License).
What is this¶
In one sentence: It bridges DSH “target sessions” with QQ private/group chats, relying solely on HTTP interfaces like http://127.0.0.1:3000 for both sending and receiving. The plugin itself does not implement QQ login; you need to run SnowLuma or NapCat locally and enable the OneBot 11 HTTP service (the README explicitly states: if only WebSocket is enabled and HTTP is disabled, the plugin cannot connect).
Both halves of the capability are implemented in the README, and neither side requires a separate BOT process to relay between DSH and QQ:
- DSH → QQ: Watches your selected target session; after the partner finishes the last sentence of a turn, sends that original text to QQ.
- QQ → DSH: The plugin polls the backend (
get_friend_msg_history/get_group_msg_history) every 4 seconds; upon discovering new messages from you on QQ, it forwards them into the target session.
The security defaults are conservative: Master switch is off by default, Dry run is on by default—when the master switch is not manually turned on, no messages are actually sent to QQ; when Dry run is on, it only logs the intended action without actually sending.
Core Functions¶
Settings Page (No file editing required)¶
Open Settings → Bridge to QQ in DSH. The main items are as follows (consistent with the README table):
| Item | Default | Description |
|---|---|---|
| Master Switch | Off | If off, no messages are sent. |
| Dry Run | On | If on, only logs actions without actually sending. |
| Target Session | (Unselected) | Dropdown to select the session to bind; no manual ID entry required. |
| Forward to Private / Private QQ ID | On / Empty | Which private chat to send to. |
| Forward to Group / Group ID | Off / Empty | Which group to send to. |
| Test Message | — | Actually sends a test sentence to the configured private chat/group (bypasses Dry Run). |
For advanced users who prefer direct configuration, the file is located at %USERPROFILE%\.dsh\qq-bridge-config.json; generally, operating via the settings page is sufficient.
HTTP Interfaces (Host Side)¶
The plugin exposes these routes within the DSH process for self-inspection or scripted configuration changes:
GET /dsh-qq-bridge/state— Configuration, logs, session list, and currently connected QQ number/nickname.POST /dsh-qq-bridge/save— Save configuration (provide keys to change in the body).POST /dsh-qq-bridge/test-send— Actually send a test sentence (bypasses Dry Run).
The README also retains /receive as a backup entry point for other programs to inject QQ messages; normal operation via polling does not depend on it.
6 Interfaces required from the QQ Backend¶
When switching backends, verify HTTP compatibility against the following list:
send_private_msg Send private chat
send_group_msg Send group message
get_login_info Check logged-in QQ (Settings page "✓ Connected QQ")
get_friend_msg_history Receive private chat (QQ → DSH)
get_group_msg_history Receive group message (QQ → DSH)
The maintainer states in the README: SnowLuma and NapCat have both been tested and are available; you can choose either one.
Optional: QQ Voice Messages (Beyond Text)¶
The main plugin only handles text. If you want the voice read by the TTS bridge to become QQ voice messages, there are additional scripts under the repository’s tools/语音/ (depends on Windows, dsh-tts-bridge, and QQ backend support for sending voice). Without installing this, the main plugin can still be used independently for bidirectional text exchange. See tools/语音/README.md in the repository for details.
Installation and Activation¶
Community Directory Page: SkillHub — Yuuyuko-uu/dsh-qq-bridge. The page is marked as installable, version v0.2.0; on GitHub, the name in package.json is dsh-qq-bridge, integrated via DSH’s cordis.patch.yml and Web-side slots injection.
Note: The scraped data and the directory page do not provide a fixed single-line dsh plugin add … command. Please refer to the plugin management interface or official documentation of your current DSH version for installation steps. Install from the repository pointed to by the directory page above; do not construct commands yourself based on the repository name.
Before installing or updating the plugin, it is recommended to review the GitHub Source Code and the MIT License yourself; the plugin runs with the current DSH process privileges and will access local QQ backend HTTP and configuration directories.
Preparing the QQ Backend (Choose One)¶
The plugin accesses the backend via http://127.0.0.1:3000 by default; if the port differs, change the “NapCat Address” or equivalent configuration item in the plugin settings.
NapCat (Steps in README)¶
- Download the Windows version from NapCat Releases and extract it to any directory.
- Double-click to start, and open the web backend (default
http://127.0.0.1:6099). - Scan the QR code in the web interface to log in with the desired QQ account.
- Confirm the HTTP Service is enabled and the port is
3000(otherwise, change the address in the plugin). - Return to DSH → Settings → Bridge to QQ → Click “Test”. It should display
✓ Connected QQ: <Nickname>(<ID>).
SnowLuma¶
Same concept: Start the program → Log in to QQ → Enable OneBot 11 HTTP → Ensure the port matches the plugin settings. Menu names should follow the SnowLuma Repository documentation; the README notes that this backend is the author’s long-term self-test environment.
Usually, the local desktop side only needs: One QQ Backend + DSH + This Plugin.
Typical Usage¶
1. Connect and Verify QQ Identity¶
First, ensure the backend HTTP is available on port 3000 (or your configured address). Click “Test” in Settings → Bridge to QQ, and use get_login_info to confirm the Settings page displays the logged-in QQ.
2. Select Target Session and Configure Output¶
Select the DSH session you want to bind in the dropdown (usually the one where you chat with your partner). Fill in the private QQ ID or Group ID as needed, and turn on “Forward to Private” or “Forward to Group”. If you are still unsure, keep Dry Run = On to observe if the logs record the actions; when ready to send for real, turn off Dry Run and turn on the Master Switch.
3. Send a Real Test¶
Use the Test Message button on the settings page (or POST /dsh-qq-bridge/test-send), which will actually send to the configured private chat/group and bypasses Dry Run. After confirming receipt on QQ, continue chatting normally in DSH to verify if the “last sentence of a turn” appears on QQ.
4. Feedback from QQ to DSH¶
Send a new message in the configured private chat or group. The plugin polls the history interface approximately every 4 seconds; once the message enters the target session, the partner should start a new turn as usual. If messages are not received, first check if the backend implements get_friend_msg_history / get_group_msg_history, and verify the Master Switch and Target Session selection.
5. Repository Self-Test Scripts (Run half-logic without installing the plugin)¶
The maintainer provides in the README:
node tests/宿主半边.mjs
node tests/网页半边.mjs
These are used to verify host-side and web-side logic respectively, facilitating troubleshooting.
Use Cases and Notes¶
Who it is for: Users already using DSH AI partners who want to extend the same conversation to QQ private or group chats; willing to maintain SnowLuma or NapCat locally and accept the OneBot 11 HTTP abstraction layer.
Points to note:
- Default is Master Switch Off, Dry Run On to avoid accidental sends to QQ; real test sends bypass Dry Run.
- Only HTTP mode is supported; do not enable only WebSocket.
- DSH → QQ only sends the last sentence of each dialogue turn (the original text), not the entire stream of intermediate results.
- QQ → DSH relies on polling, resulting in a delay of about 4 seconds; it is not instant push.
- Voice-related capabilities are in
tools/语音/, with platform and dependency requirements different from the main plugin (Windows + Reading Bridge, etc.). - When both the plugin and QQ backend run locally, pay attention to account security and who can send messages to the bound groups/private chats.
Change history is available in the repository’s CHANGELOG.md; the versioning rule is +0.0.1 for each change, with carry-over when the last digit reaches 10.
Conclusion¶
dsh-qq-bridge connects selected sessions in DSH with QQ via OneBot 11 HTTP: the last sentence of a partner’s turn can be sent to QQ, and your new messages on QQ are polled into DSH. The backend can be either SnowLuma or NapCat, configuration is centralized on the settings page, and it features conservative default switches.
- Community Directory: https://www.skillhub.cn/plugins/Yuuyuko-uu/dsh-qq-bridge
- Source Code & README: https://github.com/Yuuyuko-uu/dsh-qq-bridge