Skip to main content

nonebot的报错提示插件

Project description

logo

✨ 错误可视化插件 ✨

license pypi python uv

📖 介绍

非侵入式的错误可视化插件, 可以将运行中的错误以图片的形式发送到聊天窗口, 方便调试、排查问题和用户反馈。

💿 安装

使用 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


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_error_show-0.1.2.tar.gz (11.5 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_error_show-0.1.2-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_error_show-0.1.2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_error_show-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aa50fe4119826fe863a851410944223bdf3365bd92a498d0de185eacc1f02cc2
MD5 16b630df870e94c399f4b7e5c6b48d10
BLAKE2b-256 638a679ff2bc8f8d97688f9a146c66010a3dbc2bcc8798815a40b4b5c0ad13e6

See more details on using hashes here.

File details

Details for the file nonebot_plugin_error_show-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_error_show-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e45cf658855ed2e8d38110a6e05b15780ca4ce54bbbe6cd6ec0a5ae0ab4f0813
MD5 aeae568b87d0f2ac6c3dedcc49c6e3a0
BLAKE2b-256 205efb8bd01ba1603743e9a8e0c3a50c979f3f4bfcee7d1ee990cae529c12f6f

See more details on using hashes here.

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