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)