📖 介绍
一款全新的检测已安装插件更新情况的插件
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-updater
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-updater
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_updater"]
⚠️ 注意
此插件只支持nb-cli用户 没用 cli 安装的项目使用的 python 路径太复杂了
🎉 使用
🔧 插件配置
请在你的 bot 根目录下的.env .env.*中添加以下字段
| 字段 | 类型 | 默认值 | 可选值 | 描述 | 必填 |
|---|---|---|---|---|---|
| UPDATER_PROXY | str | "" | - | 访问 Github 时使用的 HTTP/SOCKS5代理 如 http://127.0.0.1:7890 |
否 |
| INFO_SEND_MODE | str | "pic" | "text", "pic" | 发送插件信息/更新的方式 | 否 |
✨ 功能介绍
-
获取已安装插件列表
-
检查插件更新
-
更新插件
-
安装插件
-
卸载插件
-
远程关闭 nb
-
远程重启 nb
🤖 指令表
⚠️ 此处示例中的"/"为 nb 默认的命令开始标志,若您设置了另外的标志,则请使用您设置的标志作为开头
| 指令 | 权限 | 需要@ | 说明 | 示例 |
|---|---|---|---|---|
获取插件列表 |
无 | 无 | 获取已安装的插件列表 | /获取插件列表 |
检查插件更新 |
无 | 无 | 检查可用的插件更新 | /检查插件更新 |
更新插件 <需要更新的插件名> |
SUPERUSERS | 无 | 更新插件。若需更新的插件名为all,则更新所有已安装的插件 |
/更新插件 nonebot-pluign-status |
安装插件 <需要安装的插件名> |
SUPERUSERS | 无 | 安装指定插件 | /安装插件 nonebot-pluign-status |
卸载插件 <需要卸载的插件名> |
SUPERUSERS | 无 | 卸载指定插件 | /卸载插件 nonebot-pluign-status |
关闭nb |
SUPERUSERS | 无 | 远程关闭 nb | /关闭nb |
重启nb |
SUPERUSERS | 无 | 远程重启 nb | /重启nb |
🚩 TODO
- 使用 html 渲染插件列表及插件更新列表
- 处理插件模块名与 project_link 不一致的插件
- 添加安装/卸载插件的功能
致谢
感谢nonebot-plugin-runagain对本项目的启发 (直接开抄)
Metadata
Release files for nonebot-plugin-updater 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_updater-0.2.6.tar.gz | 615.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_updater-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 629.7 kB
Release files / nonebot_plugin_updater-0.2.6.tar.gz
| Download URL | nonebot_plugin_updater-0.2.6.tar.gz |
|---|---|
| Size | 615.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8eeb04bca57cf58beda1e0047cfa3a2efddccf29809bc01827fda21cde104b51
|
|
BLAKE2b-256 checksum How to use checksums |
39dcff0e06337e63305e8df950d4fbe947e3570e3d476eb68479611ad9b2173f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.
Transparency logRelease files / nonebot_plugin_updater-0.2.6-py3-none-any.whl
| Download URL | nonebot_plugin_updater-0.2.6-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0761d28e9e3ba1c24d888610fc9104de6063411fce5c6d654654fdd73a469ef
|
|
BLAKE2b-256 checksum How to use checksums |
fee3acf8861852f9909dc9942c7d84c1e93c382d45d83d83f1e123f6e691f342
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.
Transparency log