TomoyoNatsume/dsh-qq-bridge4

dsh-qq-bridge

A pluggable DSH host plugin that connects QQ (NapCat/OneBot) and forwards messages to DSH agents / local capabilities.

包名
dsh-qq-bridge
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

5. 配置 DSH web profile

把插件写入 DSH 的 web profile。默认配置文件是:

~/.dsh/profiles/web/cordis.patch.yml

如果这个文件目前只有 [],可以替换成下面内容;如果已经有别的配置,就把 insert 这一段合并进去(注意替换其中的qq号和log路径):

- insert:
    - id: dsh-qq-bridge
      name: /path/to/dsh-qq-bridge/dist/index.js
      config:
        napcat:
          wsUrl: ws://127.0.0.1:3001
          token: !!js process.env.DSH_QQ_TOKEN
        access:
          adminQq: 
          allowlist: []
          commandPrefix: /dsh
          mode: whitelist
        agent:
          provider: deepseek-official
          model: deepseek-v4-pro
          preset: standard
          streamReasoning: false
          maxMessageLength: 4500
        shell:
          enabled: false
        selfLogInput:
          enabled: true
          logPath: /home//Napcat/log/napcat_.log
          pollIntervalMs: 1000
          replayOnStart: false

需要改的地方:

  • name:改成你 clone 后的真实插件入口路径,例如 /home/me/dsh-qq-bridge/dist/index.js
  • adminQq:填你的 QQ 号。
  • logPath:填你的 NapCat 日志路径。
  • model:按你的 DSH 模型配置调整。

如果你不用“我的电脑/自己给自己发消息”,而是主号发给机器人小号,可以删除 selfLogInput 这一段,并把 adminQq 填主号 QQ。