From dbb1b9361d9bd3f0648ab19b575007f43580ca4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E5=A5=88=E5=8D=83=E7=A5=81?= Date: Wed, 8 Nov 2023 16:54:35 +0000 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E9=81=87=E5=88=B046=E7=BE=A4?= =?UTF-8?q?=E9=A3=8E=E6=8E=A7=E6=9C=AA=E5=8F=8A=E6=97=B6=E5=A4=84=E7=90=86?= =?UTF-8?q?~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 千奈千祁 --- config/default_config/bot.yaml | 2 ++ lib/plugins/loader.js | 1 + 2 files changed, 3 insertions(+) diff --git a/config/default_config/bot.yaml b/config/default_config/bot.yaml index afb9399..8dc3d92 100644 --- a/config/default_config/bot.yaml +++ b/config/default_config/bot.yaml @@ -5,6 +5,8 @@ log_level: info ignore_self: true # 被风控时是否尝试用分片发送 resend: false +# 发送消息错误时是否通知主人 +sendmsg_error: false # ffmpeg ffmpeg_path: ffprobe_path: diff --git a/lib/plugins/loader.js b/lib/plugins/loader.js index e97484e..67c953d 100644 --- a/lib/plugins/loader.js +++ b/lib/plugins/loader.js @@ -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}`) } // 频道一下是不是频道