fix: destroy await/async

This commit is contained in:
ikechan8370 2023-02-17 22:15:28 +08:00 committed by GitHub
parent 4d53f378f1
commit a1e72c7757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -363,7 +363,7 @@ export class chatgpt extends plugin {
await redis.lPop('CHATGPT:CHAT_QUEUE', 0) await redis.lPop('CHATGPT:CHAT_QUEUE', 0)
} }
if ( e === 'Error: {"detail":"Conversation not found"}') { if ( e === 'Error: {"detail":"Conversation not found"}') {
destroyConversations (e) await this.destroyConversations (e)
await this.reply(`当前对话异常,已经清除,请重试`, true, { recallMsg: e.isGroup ? 10 : 0 }) await this.reply(`当前对话异常,已经清除,请重试`, true, { recallMsg: e.isGroup ? 10 : 0 })
} else } else
await this.reply(`通信异常,请稍后重试:${e}`, true, { recallMsg: e.isGroup ? 10 : 0 }) await this.reply(`通信异常,请稍后重试:${e}`, true, { recallMsg: e.isGroup ? 10 : 0 })