From a6a73a082210547058c92174360228243bf14a4f Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sun, 5 Mar 2023 21:48:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/entertainment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/entertainment.js b/apps/entertainment.js index 6a03b52..306da0c 100644 --- a/apps/entertainment.js +++ b/apps/entertainment.js @@ -31,7 +31,7 @@ export class Entertainment extends plugin { async sendMessage (e) { let groupId = e.msg.replace(/^#(chatgpt|ChatGPT)打招呼/, '') groupId = parseInt(groupId) - if (!Bot.getGroupList().get(groupId)) { + if (groupId && !Bot.getGroupList().get(groupId)) { await e.reply('机器人不在这个群里!') return }