dsh-napcat-keeper

让 NapCat 这个 QQ 后端跟着 DSH 一起活着:启动时探测 OneBot 11 的 HTTP 端口,连不上就拉起 NapCat,之后每 45 秒复查、清掉重复的进程链、隐藏控制台窗口、可在填写任务名后创建登录计划任务,并提供设置页以及 napcat_status、napcat_restart、napcat_dedupe 三个工具。可选记住 QQ 密码(默认关闭,开启前需确认风险),让失效的快速登录令牌不用扫码也能自己续上。仅 Windows;不建计划任务时,拉起的 QQ 会随 DSH 一起退出。

插件介绍

让 NapCat 这个 QQ 后端跟着 DSH 一起活着:启动时探测 OneBot 11 的 HTTP 端口,连不上就拉起 NapCat,之后每 45 秒复查、清掉重复的进程链、隐藏控制台窗口、可在填写任务名后创建登录计划任务,并提供设置页以及 napcat_status、napcat_restart、napcat_dedupe 三个工具。可选记住 QQ 密码(默认关闭,开启前需确认风险),让失效的快速登录令牌不用扫码也能自己续上。仅 Windows;不建计划任务时,拉起的 QQ 会随 DSH 一起退出。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-napcat-keeper

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:waning-sun/dsh-napcat-keeper

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令
  • 可能需要提供凭据