nonebot-plugin-shiro-web-console
一个用于 NoneBot2 的网页控制台插件,支持通过浏览器查看日志和发送消息。
安装
nb plugin install nonebot-plugin-shiro-web-console
或者使用 pip:
pip install nonebot-plugin-shiro-web-console
使用
- 启动机器人后,在群聊或私聊中发送
web控制台获取登录验证码。 - 访问机器人运行所在的
http://ip:port/web_console。 - 输入验证码即可登录。
配置
在 .env 文件中可以配置:
web_console_password=your_password # 设置固定登录密码
web_console_log_retention_minutes=60 # Web 控制台日志缓存保留时长(分钟)
web_console_log_cleanup_interval_seconds=60 # 过期日志自动清理间隔(秒)
更新日志
v0.2.2
- 新增:改为通过拟人插件导出的
web_console_api稳定接口读取在线版nonebot-plugin-shiro-personification与本地版personification。 - 优化:双版本同时存在时按“在线版优先,本地版回退”自动选择活动 provider,并在接口响应中返回
detected_providers供前端展示。 - 修复:拟人插件联动不再依赖内部模块结构,避免发布版与本地版架构差异导致控制台页面失效。
v0.2.1
- 修复:为 Web 控制台日志缓存增加过期日志自动清理,避免低日志量场景下旧缓存长期残留。
- 新增:支持通过
web_console_log_retention_minutes与web_console_log_cleanup_interval_seconds配置日志缓存保留时长和清理周期。
v0.2.0
- 新增:为
nonebot-plugin-shiro-personification与本地personification提供统一的 Web Console 联动兼容层。 - 新增:拟人插件页面支持图形化查看和修改运行时全局配置、群配置与自定义 Prompt。
- 优化:拟人插件状态页增加白名单、作息模拟、语音回复等群级状态展示,并兼容双插件变体自动识别。
v0.1.23
- 新增:支持在 Web 控制台启用或禁用插件(需要
tomlkit库支持)。 - 优化:改进已安装插件的检测逻辑,支持识别已安装但未加载的插件。
v0.1.22
- 优化:改进日志下载功能,支持将多个轮转日志文件打包为 ZIP 格式下载,解决旧日志无法获取的问题。
v0.1.21
- 修复:修复因
nonebot_plugin_localstore加载顺序导致的RuntimeError,确保插件能够正常加载。
v0.1.20
- 优化:改进
nb命令调用逻辑,支持自动规范化插件名称(处理下划线/连字符),增加python -m nb_cli调用方式作为回退,提高插件安装/更新的成功率。
v0.1.19
- 修复:优化插件版本检测逻辑,增加对连字符命名和 PyPI 包名的兼容性匹配,解决更新后版本号不刷新的问题。
v0.1.18
- 修复:尝试通过清理工作流配置来解决 GitHub Actions 触发失效问题。
- 修复:修复 WebSocket 连接清理时的竞争条件(KeyError),解决偶发的 500 错误。
v0.1.17
- 修复:尝试修复 GitHub Actions 发布工作流触发问题。
- 修复:修复 WebSocket 连接清理时的竞争条件(KeyError),解决偶发的 500 错误。
v0.1.16
v0.1.15
- 修复:修复插件商店操作时的 500 错误(缺少异步锁定义)。
- 修复:修复 WebSocket 连接断开时的异常报错。
- 新增:正式实装完整日志记录与下载功能。
v0.1.14
- 新增:完整运行日志记录功能,支持在网页端直接下载。
- 优化:添加插件商店操作锁,解决多插件同时更新导致的冲突问题。
- 优化:改进插件版本获取逻辑,准确对比版本号并过滤非更新项。
- 优化:优化移动端适配及部分 UI 交互。
许可证
MIT
Metadata
Release files for nonebot-plugin-shiro-web-console 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_shiro_web_console-0.2.2.tar.gz | 44.4 kB | With provenance | Details for nonebot_plugin_shiro_web_console-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_shiro_web_console-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_shiro_web_console-0.2.2-py3-none-any.whl |
Total release size: 90.3 kB
Release files / nonebot_plugin_shiro_web_console-0.2.2.tar.gz
| Download URL | nonebot_plugin_shiro_web_console-0.2.2.tar.gz |
|---|---|
| Size | 44.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06c7d97cd58d299416f2380b5f37c54e4a3109cf9532f42ed1a089fcf6cff2ec
|
|
BLAKE2b-256 checksum How to use checksums |
69f14052c1a88df9ae0d322034a0364f4181a14361317b49c151bc211807fc81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 27, 2026.
Transparency logRelease files / nonebot_plugin_shiro_web_console-0.2.2-py3-none-any.whl
| Download URL | nonebot_plugin_shiro_web_console-0.2.2-py3-none-any.whl |
|---|---|
| Size | 45.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfe054f21c1eece93689facf3b90d7340cc97fd304df5bdd66680c0eefb4913a
|
|
BLAKE2b-256 checksum How to use checksums |
63eec2e219d2aad226c446c37ddb07e18ab0fd984eed7991db41e24015056957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 27, 2026.
Transparency logSecurity for nonebot-plugin-shiro-web-console 0.2.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nonebot_plugin_shiro_web_console-0.2.2.tar.gz
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 Apr 27, 2026.
Transparency logA 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.