From f4a94f61db672c8aa27c164a879a3682dccd7dea Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Mon, 20 Mar 2023 23:03:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8D=E5=85=81=E8=AE=B8=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E8=AE=BE=E7=BD=AE=E6=9C=AA=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/chat.js b/apps/chat.js index 03f137c..ba8f56a 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -799,6 +799,9 @@ export class chatgpt extends plugin { } async chatgpt1 (e) { + if (!Config.allowOtherMode) { + return false + } let ats = e.message.filter(m => m.type === 'at') if (!e.atme && ats.length > 0) { if (Config.debug) { @@ -815,6 +818,9 @@ export class chatgpt extends plugin { } async chatgpt3 (e) { + if (!Config.allowOtherMode) { + return false + } let ats = e.message.filter(m => m.type === 'at') if (!e.atme && ats.length > 0) { if (Config.debug) { @@ -831,6 +837,9 @@ export class chatgpt extends plugin { } async chatglm (e) { + if (!Config.allowOtherMode) { + return false + } let ats = e.message.filter(m => m.type === 'at') if (!e.atme && ats.length > 0) { if (Config.debug) { @@ -847,6 +856,9 @@ export class chatgpt extends plugin { } async bing (e) { + if (!Config.allowOtherMode) { + return false + } let ats = e.message.filter(m => m.type === 'at') if (!e.atme && ats.length > 0) { if (Config.debug) {