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 details)

Uploaded Source

Built Distribution

File details

Details for the file nonebot_plugin_error_alert-0.2.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_error_alert-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8145052a846a74ce65545ae5e6ede9276e808ebc09b72f8134467fec81a6f4a1
MD5 b6ee15cf186e4a420610183a547a0f16
BLAKE2b-256 f3a4faa6106959bf0baf0ae7d329d3665e3a9c11d9e15297e4b46349ff7d0dcb

See more details on using hashes here.

File details

Details for the file nonebot_plugin_error_alert-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_error_alert-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8a44278cb5877740cdbc94c78f7544d1b61cee4bb668b2ccbb206aff9ef79d1
MD5 300f235ef52896cfdfc912c52242ac4c
BLAKE2b-256 0946b1555655e6e04093856939ed75bb7aa63f63c9fa265cc681b77e124721b2

See more details on using hashes here.

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