Skip to main content

No project description provided

Project description

nonebot-plugin-error-alert

当Bot发生运行错误时发送消息提醒

(插件基于logger实现,其他插件在Matcher运行过程抛出异常,或是记录ERROR级别的日志,都将视作Bot运行错误)

卖家秀

1

指令

/error_alert subscribe

订阅错误告警。发生错误时立即发送消息提醒至本账号。

/error_alert subscribe --cron "<cron>"

订阅错误告警。但不会在发生错误时立即发送消息提醒,而是在满足cron表达式的时间点统一发送该时间段发生的错误告警。

示例:/error_alert subscribe --cron "0 0 * * * ?",每小时0分0秒时统一发送消息提醒

/error_alert unsubscribe

取消订阅错误告警。

/error_alert show

查看本账号订阅的错误告警。

配置项

error_alert_superuser_only

是否仅允许超级用户调用指令。

默认值:True

error_alert_plugins_blacklist

当错误涉及指定插件时不进行报错,设为None时不启用

默认值:None

error_alert_plugins_whitelist

仅当错误涉及指定插件时不进行报错,设为None时不启用

默认值:None

LICENSE

MIT License

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_alert-0.2.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page