nonebot的报错提示插件
Project description
📖 介绍
非侵入式的错误可视化插件, 可以将运行中的错误以图片的形式发送到聊天窗口, 方便调试、排查问题和用户反馈。
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-error-show --upgrade
使用 pypi 源安装
nb plugin install nonebot-plugin-error-show --upgrade -i "https://pypi.org/simple"
使用清华源安装
nb plugin install nonebot-plugin-error-show --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令uv
uv add nonebot-plugin-error-show
安装仓库 master 分支
uv add git+https://github.com/zifox666/nonebot-plugin-error-show@master
pdm
pdm add nonebot-plugin-error-show
安装仓库 master 分支
pdm add git+https://github.com/zifox666/nonebot-plugin-error-show@master
poetry
poetry add nonebot-plugin-error-show
安装仓库 master 分支
poetry add git+https://github.com/zifox666/nonebot-plugin-error-show@master
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_error_show"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置,将在错误信息最下面显示
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| E_BOT_LINK | 否 | 无 | 加BOT好友的链接 |
| E_BOT_GROUP_LINK | 否 | 无 | 加BOT服务群的链接 |
| NICKNAME | 否 | 无 | BOT名称 |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| sub_error | SUPER | 否 | 所有 | 所有异常发当前会话 |
| sub_error r | SUPER | 否 | 所有 | 移除当前会话异常接收 |
| get_error <trace_id> | SUPER | 否 | 所有 | 获取指定trace_id详情 |
| test_error <trace_id> | SUPER | 否 | 所有 | 测试异常发送 |
🎨 效果图
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_error_show-0.1.2.tar.gz.
File metadata
- Download URL: nonebot_plugin_error_show-0.1.2.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa50fe4119826fe863a851410944223bdf3365bd92a498d0de185eacc1f02cc2
|
|
| MD5 |
16b630df870e94c399f4b7e5c6b48d10
|
|
| BLAKE2b-256 |
638a679ff2bc8f8d97688f9a146c66010a3dbc2bcc8798815a40b4b5c0ad13e6
|
File details
Details for the file nonebot_plugin_error_show-0.1.2-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_error_show-0.1.2-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e45cf658855ed2e8d38110a6e05b15780ca4ce54bbbe6cd6ec0a5ae0ab4f0813
|
|
| MD5 |
aeae568b87d0f2ac6c3dedcc49c6e3a0
|
|
| BLAKE2b-256 |
205efb8bd01ba1603743e9a8e0c3a50c979f3f4bfcee7d1ee990cae529c12f6f
|