From 4b2bd367d52b3c75ce94c445ccbc33298be68794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=89=E9=A3=8E=E6=9D=A5?= <3139373986@qq.com> Date: Sun, 23 Jun 2024 16:17:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=9F=90?= =?UTF-8?q?=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B=E9=80=9A=E7=9F=A5=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=97=A0=E6=B3=95=E5=8F=91=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 等风来 <3139373986@qq.com> --- lib/common/sendMsgMod.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/common/sendMsgMod.js b/lib/common/sendMsgMod.js index 795a9a7..4c3134d 100644 --- a/lib/common/sendMsgMod.js +++ b/lib/common/sendMsgMod.js @@ -11,7 +11,6 @@ export default class { */ async sendMasterMsg(msg, botUin = Bot.uin) { let masterQQ = Config.masterQQ - const bot = Bot[botUin] ?? Bot if (Config.master) { const master = Config.master[botUin] if (master?.length) { @@ -21,10 +20,13 @@ export default class { } } if (Config.whole.notificationsAll) { // 发送全部主人 - for (const i of masterQQ) { - if (bot && !bot.fl.get(i)) continue - common.relpyPrivate(i, msg, botUin) - await common.sleep(5000) + if (Bot?.sendMasterMsg) { + await Bot.sendMasterMsg(msg, Bot.uin, 5000) + } else { + for (const i of masterQQ) { + common.relpyPrivate(i, msg, botUin) + await common.sleep(5000) + } } } else { // 发给第一个主人 return common.relpyPrivate(masterQQ[0], msg, botUin)