fix: missing return when auth failed

This commit is contained in:
ikechan8370 2022-12-09 17:12:37 +08:00
parent 676baffa20
commit 5989d81f56
2 changed files with 2 additions and 0 deletions

View file

@ -123,6 +123,7 @@ export class chatgpt extends plugin {
} catch (e) {
logger.error(e)
await this.reply(`OpenAI认证失败请检查Token${e}`, true)
return
}
let c
logger.info(`chatgpt question: ${question}`)