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服务群的链接
E_BOT_ID BOT ID
E_BOT_GROUP_ID BOT服务群ID
NICKNAME BOT名称

🎉 使用

指令表

指令 权限 需要@ 范围 说明
指令1 主人 私聊 指令说明
指令2 群员 群聊 指令说明

🎨 效果图

如果有效果图的话

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.0.tar.gz (130.4 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.0-py3-none-any.whl (131.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_error_show-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6170ce7adf160773d1e2a3c93d4964cf470155262f71c2cc8dc744094a136a34
MD5 3c8ee1e0450b77d9a8395881c53ee5fd
BLAKE2b-256 6bfb7401b7a43cf17d9913bdb7b69001275589ac055a5bc1e41fd70c603d4a9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_error_show-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ab3a4728456ccce830a350aee3f9080e7091180b709c131f857e35b7d25c2ee
MD5 d1d69d9412bb4d02ff327d5fc364f569
BLAKE2b-256 edb8a2180f9dddf6a6e16e81c1c86274a13dfec71df57ee8db618263739fd25f

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