mirror of
https://github.com/koishijs/novelai-bot
synced 2025-01-09 04:37:54 +08:00
fix: fix incorrect pending number
This commit is contained in:
parent
f1e676d82c
commit
87b5e2218f
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "koishi-plugin-novelai",
|
||||
"description": "Generate images by NovelAI",
|
||||
"version": "1.12.5",
|
||||
"version": "1.12.6",
|
||||
"main": "lib/index.js",
|
||||
"typings": "lib/index.d.ts",
|
||||
"files": [
|
||||
|
@ -210,8 +210,8 @@ export function apply(ctx: Context, config: Config) {
|
||||
}
|
||||
}
|
||||
|
||||
session.send(globalTasks.size > 1
|
||||
? session.text('.pending', [globalTasks.size - 1])
|
||||
session.send(globalTasks.size
|
||||
? session.text('.pending', [globalTasks.size])
|
||||
: session.text('.waiting'))
|
||||
|
||||
globalTasks.add(id)
|
||||
|
Loading…
Reference in New Issue
Block a user