Skip to main content
logo

✨ nonebot-plugin-ncqrcode ✨

LICENSE python

监控 NapCat 登录状态,方便在tx每日打击 Bot 掉线后自动尝试恢复,并通过另一个 Bot 向已订阅会话发送登录二维码。建议使用 Telegram 或 Discord Bot 接收通知。

安装

nb plugin install nonebot-plugin-ncqrcode

或:

uv add nonebot-plugin-ncqrcode

配置

# NapCat WebUI 的访问地址
NCQRCODE_BASE_URL=http://127.0.0.1:6099

# NapCat WebUI 的访问密钥
NCQRCODE_TOKEN=Napcat WebUI 密钥

# 需要监控和恢复登录的 QQ 号
NCQRCODE_ACCOUNT_ID=被监控的 QQ 号

# 每次掉线最多向订阅目标发送二维码的次数,默认为 5
NCQRCODE_MAX_QR_NOTIFICATIONS=5

使用

仅限 SUPERUSER 使用:

命令 说明
/nc subscribe 将当前场景设为通知目标
/nc unsubscribe 清除通知目标
/nc qrcode 获取登录二维码,仅回复当前会话

效果图

alt text

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_ncqrcode-0.2.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_ncqrcode-0.2.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_ncqrcode-0.2.1.tar.gz.

File metadata

  • Download URL: nonebot_plugin_ncqrcode-0.2.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_ncqrcode-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4e6ed0fced35cd9196627becba9a7c65f61cc430ec0f0d428a77a901661a699b
MD5 52b8e09373d1b07188c5f7950f05d547
BLAKE2b-256 7920fe2f5e4f89990ef2d400a2dce7102ac0bbb7b16209ea2e5bb673ffd7352e

See more details on using hashes here.

File details

Details for the file nonebot_plugin_ncqrcode-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_ncqrcode-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_ncqrcode-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9965e281a899bd80178e17ceb043086fd41a711dedda51489ef2fe84e3e4d98
MD5 f3ee93ceb8446adc14f96ebfe2787c46
BLAKE2b-256 9f352b8b232fec20b24cb1e8c95bee0f17d8817c39b179248630fd7f1a449ba9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page