From 5989d81f56aad31789dca72c8c8a214828155002 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Fri, 9 Dec 2022 17:12:37 +0800 Subject: [PATCH] fix: missing return when auth failed --- index.js | 1 + index_no#.js | 1 + 2 files changed, 2 insertions(+) diff --git a/index.js b/index.js index aeeee74..9074c8f 100644 --- a/index.js +++ b/index.js @@ -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}`) diff --git a/index_no#.js b/index_no#.js index a4aad8e..23a638b 100644 --- a/index_no#.js +++ b/index_no#.js @@ -129,6 +129,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}`)