From e580928b9bb42700c4f749600cc9af9cb483554e Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Fri, 3 Mar 2023 21:12:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=BD=E4=BB=A4=E7=B2=BE=E5=87=86?= =?UTF-8?q?=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/chat.js | 10 +++++----- apps/help.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/chat.js b/apps/chat.js index b01b6a9..ab2a700 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -64,7 +64,7 @@ export class chatgpt extends plugin { fnc: 'chatgpt' }, { - reg: '#chatgpt对话列表', + reg: '^#chatgpt对话列表$', fnc: 'getAllConversations', permission: 'master' }, @@ -81,20 +81,20 @@ export class chatgpt extends plugin { // fnc: 'help' // }, { - reg: '#chatgpt图片模式', + reg: '^#chatgpt图片模式$', fnc: 'switch2Picture' }, { - reg: '#chatgpt文本模式', + reg: '^#chatgpt文本模式$', fnc: 'switch2Text' }, { - reg: '#清空(chat)?队列', + reg: '^#(chatgpt)清空(chat)?队列$', fnc: 'emptyQueue', permission: 'master' }, { - reg: '#移出(chat)?队列首位', + reg: '^#(chatgpt)移出(chat)?队列首位$', fnc: 'removeQueueFirst', permission: 'master' }, diff --git a/apps/help.js b/apps/help.js index 55b6bc8..a660ade 100644 --- a/apps/help.js +++ b/apps/help.js @@ -129,7 +129,7 @@ export class help extends plugin { priority: 500, rule: [ { - reg: '#(chatgpt|ChatGPT)(命令|帮助|菜单|help|说明|功能|指令|使用说明)', + reg: '^#(chatgpt|ChatGPT)(命令|帮助|菜单|help|说明|功能|指令|使用说明)$', fnc: 'help' } ]