fix: 开启内容生成会爆token的问题

This commit is contained in:
ikechan8370 2023-05-21 18:54:14 +08:00
parent d88550db39
commit 758aeb67a2
4 changed files with 25 additions and 16 deletions

View file

@ -276,6 +276,7 @@ export class ChatgptManagement extends plugin {
}
await this.reply(roleList)
}
async ttsSwitch (e) {
let userReplySetting = await redis.get(`CHATGPT:USER:${e.sender.user_id}`)
userReplySetting = !userReplySetting