From 05494ad85b8250b365811146d5a89fec740229d3 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sat, 18 Feb 2023 15:16:53 +0800 Subject: [PATCH] fix: delete in group only at mode --- apps/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/chat.js b/apps/chat.js index be37f5d..016aaf2 100644 --- a/apps/chat.js +++ b/apps/chat.js @@ -170,7 +170,7 @@ export class chatgpt extends plugin { await this.reply('本功能当前仅支持API3模式', true) return false } - if (ats.length === 0) { + if (ats.length === 0 || (ats.length === 1 && e.atme)) { let conversationId = _.trimStart(e.msg, '#chatgpt删除对话').trim() if (!conversationId) { await this.reply('指令格式错误,请同时加上对话id或@某人以删除他当前进行的对话', true)