!124 添加`发送消息错误时通知主人`开关

* 防止遇到46群风控未及时处理~
This commit is contained in:
千奈千祁 2023-11-16 17:31:55 +00:00 committed by Kokomi
parent 8dfebe5745
commit 5f16e8fcac
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,8 @@ log_level: info
ignore_self: true
# 被风控时是否尝试用分片发送
resend: false
# 发送消息错误时是否通知主人
sendmsg_error: false
# ffmpeg
ffmpeg_path:
ffprobe_path:

View File

@ -537,6 +537,7 @@ class PluginsLoader {
}
logger.error(`发送消息错误:${msg}`)
logger.error(err)
if(cfg.bot.sendmsg_error) Bot[Bot.uin].pickUser(cfg.masterQQ[0]).sendMsg(`发送消息错误:${msg}`)
}
// 频道一下是不是频道