Skip to content

Commit

Permalink
Update Lolicon.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
cikiPAD authored Dec 11, 2023
1 parent cc4f1b6 commit 2356961
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/command/Lolicon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import io.github.samarium150.mirai.plugin.lolicon.util.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.runInterruptible
import kotlinx.coroutines.sync.withLock
import kotlinx.coroutines.launch
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import net.mamoe.mirai.console.command.CommandSender
Expand Down Expand Up @@ -751,7 +752,7 @@ object Lolicon : CompositeCommand(
}
logger.info("开始装填")
launch {
boot(Runnable {
ImageCachedPool.getInstance().boot(Runnable {
val req: MutableMap<String, Any?> = HashMap()
req[ParamsConstant.R18] = 0
req[ParamsConstant.NUM] = 2
Expand All @@ -762,7 +763,7 @@ object Lolicon : CompositeCommand(
?: emptyList()


images:List<Any> = ArrayList();
val images:List<Any> = ArrayList()

for (imageUrl in imageUrls) {
runCatching {
Expand Down

0 comments on commit 2356961

Please sign in to comment.