fix: bind token

This commit is contained in:
ikechan8370 2023-02-14 14:06:20 +08:00
parent d69b46f188
commit 95d14fa4a4

View file

@ -99,6 +99,7 @@ export class ChatgptManagement extends plugin {
if (!token.startsWith('ey') || token.length < 20) {
await this.reply('ChatGPT AccessToken格式错误', true)
this.finish('saveToken')
return
}
await redis.set('CHATGPT:TOKEN', token)
await this.reply('ChatGPT AccessToken设置成功', true)