Skip to main content

基于nonebot的报错处理插件,支持图片/文字发送、数据库存储及跨平台

Project description

这里放一张oc饭🤤

NoneBot 错误管理插件

✨ 智能记录并可视化机器人运行时的错误信息 ✨

📝 插件介绍

这是一个基于 NoneBot2 的错误处理插件,提供以下功能:

  • 实时捕获并绘制错误详细信息为图片
  • 支持错误信息的持久化存储与管理
  • 多样化的错误查询与统计功能
  • 支持多平台适配

🎯 功能特点

  • 自动将错误信息转换为图片发送(失败时自动切换为文本模式)
  • 支持错误信息的数据库存储
  • 提供丰富的错误管理命令
  • 基于 nonebot-plugin-userinfo 获取用户信息
  • 使用 nonebot_plugin_alconna 提供优雅的命令交互

💿 安装方式

pip install nonebot-plugin-error-manager

🎮 使用方法

配置详情

  • error_image_quality - 错误图片绘制质量,默认为 30
  • error_image_font - 错误图片字体,默认为 "Source Han Sans CN"

基础命令

  • /错误管理 查看 [页数] - 分页查看错误记录
  • /错误管理 详情 [id] - 查看指定ID的错误详情
  • /错误管理 删除 [id] - 删除指定ID的错误记录
  • /错误管理 统计 - 查看错误统计信息

高级查询

  • /错误管理 查找 <字段名> <值> - 精确查找错误记录
  • /错误管理 搜索 <关键词> - 模糊搜索错误记录
  • /错误管理 清空 <类型> <值> - 批量清理错误记录
    • 类型:all/user/bot/date
    • 值:all/用户ID/机器人ID/日期

别名支持

支持使用 错误err 作为命令别名。

📸 效果展示

示例图片

🙏 鸣谢

📄 开源协议

MIT License

Copyright (c) 2025 huanxin996

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_report-0.0.2.tar.gz (10.7 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_report-0.0.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_error_report-0.0.2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_error_report-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9108473cc3cca95f9e64b2f8b2f846e512d1142970d854100215bf3e904b45a4
MD5 d1372495159ae7ec8f31966f21336f60
BLAKE2b-256 0b0de346000cefd004fce43c22555cb7d6762cf1d7c51afb8da48f9e36e9586b

See more details on using hashes here.

File details

Details for the file nonebot_plugin_error_report-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_error_report-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 158f85f13b9629b88d1d0c7a3ef54ddeb7286be9a4ff890681abce79b67800ab
MD5 6789d31fa001737f572342a86d7a9a0a
BLAKE2b-256 ad44bbb56ca2ed20fd25becffd5172bcbb073f995648e44f446db094f3e06262

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