fix: format code

This commit is contained in:
ikechan8370 2023-04-14 21:44:06 +08:00
parent 2679206be9
commit 414eb1b098
12 changed files with 819 additions and 908 deletions

View file

@ -239,7 +239,7 @@ export class dalle extends plugin {
this.reply('请提供绘图prompt')
return false
}
let bingToken = ''
if (await redis.exists('CHATGPT:BING_TOKENS') != 0) {
let bingTokens = JSON.parse(await redis.get('CHATGPT:BING_TOKENS'))
@ -251,7 +251,6 @@ export class dalle extends plugin {
})
bingToken = minElement.Token
} else if (restricted.length > 0) {
allThrottled = true
const minElement = restricted.reduce((min, current) => {
return current.Usage < min.Usage ? current : min
})