Skip to main content

一款全新的检测已安装插件更新情况的插件

Project description

logo

nonebot-plugin-updater

License PyPI NoneBot Python

📖 介绍

一款全新的检测已安装插件更新情况的插件

💿 安装

使用 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.*中添加以下字段

字段 类型 默认值 可选值 描述 必填
GITHUB_PROXY str "" - GitHub 代理
INFO_SEND_MODE str "pic" "text", "pic" 发送插件信息/更新的方式

✨ 功能介绍

  • 获取已安装插件列表
    plugin_list get_plugin_info

  • 检查插件更新
    check_update check_update

  • 更新插件
    update_plugin

  • 安装插件

  • 卸载插件

  • 远程关闭 nb
    close_nb

  • 远程重启 nb
    restart_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对本项目的启发 (直接开抄)

Project details


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_updater-0.2.3.tar.gz (615.2 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_updater-0.2.3-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_updater-0.2.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_updater-0.2.3.tar.gz
  • Upload date:
  • Size: 615.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nonebot_plugin_updater-0.2.3.tar.gz
Algorithm Hash digest
SHA256 9ac0c10c01cecbfbd4e5860e4d37ad372c61d1910789ed393ef7b30b2a2a592a
MD5 6275981cdeb8d2c9431ed58cdab863b8
BLAKE2b-256 15d2737bf89d827649edab9dcd16c8882cba46491f8429a2c0f57ea6830be09b

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_updater-0.2.3.tar.gz:

Publisher: release.yml on hanasa2023/nonebot-plugin-updater

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_updater-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_updater-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a82c241effd5c381357fa6f764ac4b2f6ba8e2774c2ca2bb6063ca6dd28293eb
MD5 cfd42a4a67d4f21b9527d3e24038f539
BLAKE2b-256 558931d273597de7cb8108211a681703bd98a7760ce0a22b3e373e2c32454f81

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_updater-0.2.3-py3-none-any.whl:

Publisher: release.yml on hanasa2023/nonebot-plugin-updater

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page