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 }