mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: enable confirm by default
This commit is contained in:
parent
da856956c8
commit
4bf12ccb89
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ export class chatgpt extends plugin {
|
|||
// 队列队尾插入,开始排队
|
||||
await redis.rPush('CHATGPT:CHAT_QUEUE', [randomId])
|
||||
let confirm = await redis.get('CHATGPT:CONFIRM')
|
||||
let confirmOn = confirm === 'on'
|
||||
let confirmOn = !confirm || confirm === 'on'
|
||||
if (await redis.lIndex('CHATGPT:CHAT_QUEUE', 0) === randomId) {
|
||||
if (confirmOn) {
|
||||
await this.reply('我正在思考如何回复你,请稍等', true, { recallMsg: 8 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue