dsh-napcat-keeper

Keeps the NapCat QQ backend alive next to DSH: probes the OneBot 11 HTTP port at startup, launches NapCat when the port does not answer, then rechecks every 45 seconds, kills duplicate process chains, hides the console window, can create a logon scheduled task when a task name is set, and adds a settings page plus napcat_status, napcat_restart and napcat_dedupe tools. Optionally remembers the QQ password, behind a risk confirmation, so an expired fast-login token can be renewed without scanning a QR code. Windows only; without that scheduled task the launched QQ exits together with DSH.

Overview

Keeps the NapCat QQ backend alive next to DSH: probes the OneBot 11 HTTP port at startup, launches NapCat when the port does not answer, then rechecks every 45 seconds, kills duplicate process chains, hides the console window, can create a logon scheduled task when a task name is set, and adds a settings page plus napcat_status, napcat_restart and napcat_dedupe tools. Optionally remembers the QQ password, behind a risk confirmation, so an expired fast-login token can be renewed without scanning a QR code. Windows only; without that scheduled task the launched QQ exits together with DSH.

Installation

Install from 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.

Install from 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.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands
  • May require credentials