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

Metadata

Release files for nonebot-plugin-ncqrcode 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-ncqrcode 0.2.1
File Size Uploaded Provenance Actions
nonebot_plugin_ncqrcode-0.2.1.tar.gz 8.1 kB Without provenance Details for nonebot_plugin_ncqrcode-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-ncqrcode 0.2.1
File Interpreter ABI Platform Actions
nonebot_plugin_ncqrcode-0.2.1-py3-none-any.whl Python 3 none any Details for nonebot_plugin_ncqrcode-0.2.1-py3-none-any.whl

Total release size: 19.0 kB

Release files / nonebot_plugin_ncqrcode-0.2.1.tar.gz

Download URL nonebot_plugin_ncqrcode-0.2.1.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4e6ed0fced35cd9196627becba9a7c65f61cc430ec0f0d428a77a901661a699b
BLAKE2b-256 checksum
How to use checksums
7920fe2f5e4f89990ef2d400a2dce7102ac0bbb7b16209ea2e5bb673ffd7352e
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / nonebot_plugin_ncqrcode-0.2.1-py3-none-any.whl

Download URL nonebot_plugin_ncqrcode-0.2.1-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9965e281a899bd80178e17ceb043086fd41a711dedda51489ef2fe84e3e4d98
BLAKE2b-256 checksum
How to use checksums
9f352b8b232fec20b24cb1e8c95bee0f17d8817c39b179248630fd7f1a449ba9
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for nonebot-plugin-ncqrcode 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

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