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.1.tar.gz (11.0 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.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_error_show-0.1.1.tar.gz
Algorithm Hash digest
SHA256 27402e034006ba6e0cd0b414ba7b70339e5408564dec5f3eb6d974ffb28e3a37
MD5 5bb262d6b3cf5b04d311f2ba87a4dbe5
BLAKE2b-256 acaaf24484a0866b45c8622b2fd55f85992e62a7f3c1e4abee1619a64e575807

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_error_show-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9bc43fa9632c0b8d0bab06ef5068f9d4d460000e5191fd0e5920779b6f28e06
MD5 4de2b431ed6af7abe77a98fb56408ee0
BLAKE2b-256 93e1e6818d2dcba161e2b45176edde77774d1fba892cdb1858138e0862cb10e0

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