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' } ]