From 2c5d573ec2124f2b073884fdf661b9ff08b5aba6 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sun, 5 Mar 2023 17:01:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/entertainment.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/entertainment.js b/apps/entertainment.js index 912c0f4..8eaafb9 100644 --- a/apps/entertainment.js +++ b/apps/entertainment.js @@ -47,6 +47,7 @@ export class Entertainment extends plugin { } async sendRandomMessage () { + logger.info('开始处理:ChatGPT随机打招呼。') let toSend = Config.initiativeChatGroups || [] for (let i = 0; i < toSend.length; i++) { let groupId = parseInt(toSend[i]) @@ -60,6 +61,8 @@ export class Entertainment extends plugin { } else { await Bot.sendGroupMsg(groupId, message) } + } else { + logger.info(`这次就不打招呼给群聊${groupId}了`) } } else { logger.warn('机器人不在要发送的群组里,忽略群' + groupId)