fix: delete in group only at mode

This commit is contained in:
ikechan8370 2023-02-18 15:16:53 +08:00
parent 4cdaa70c22
commit 05494ad85b

View file

@ -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)