update plagubot

This commit is contained in:
InsanusMokrassar 2024-09-22 18:22:07 +06:00
parent 8ef89a32c7
commit 6784a3c49a
2 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import dev.inmo.micro_utils.repos.exposed.keyvalue.ExposedKeyValueRepo
import dev.inmo.micro_utils.repos.exposed.onetomany.ExposedKeyValuesRepo import dev.inmo.micro_utils.repos.exposed.onetomany.ExposedKeyValuesRepo
import dev.inmo.micro_utils.repos.mappers.withMapper import dev.inmo.micro_utils.repos.mappers.withMapper
import dev.inmo.plagubot.Plugin import dev.inmo.plagubot.Plugin
import dev.inmo.plagubot.database
import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext
import dev.inmo.tgbotapi.libraries.cache.admins.micro_utils.DefaultAdminsCacheAPIRepoImpl import dev.inmo.tgbotapi.libraries.cache.admins.micro_utils.DefaultAdminsCacheAPIRepoImpl
import dev.inmo.tgbotapi.libraries.cache.admins.micro_utils.DynamicAdminsCacheSettingsAPI import dev.inmo.tgbotapi.libraries.cache.admins.micro_utils.DynamicAdminsCacheSettingsAPI
@ -44,7 +45,7 @@ class AdminsPlugin : Plugin {
return flow.filterNotNull().first() return flow.filterNotNull().first()
} }
override fun Module.setupDI(database: Database, params: JsonObject) { override fun Module.setupDI(config: JsonObject) {
single { this@AdminsPlugin } single { this@AdminsPlugin }
val scopeQualifier = named("admins plugin scope") val scopeQualifier = named("admins plugin scope")
single(scopeQualifier) { CoroutineScope(Dispatchers.IO + SupervisorJob()) } single(scopeQualifier) { CoroutineScope(Dispatchers.IO + SupervisorJob()) }

View File

@ -14,7 +14,7 @@ github_release_plugin_version=2.5.2
tgbotapi_version=18.2.0 tgbotapi_version=18.2.0
micro_utils_version=0.22.2 micro_utils_version=0.22.2
exposed_version=0.54.0 exposed_version=0.54.0
plagubot_version=9.3.0 plagubot_version=10.0.0
# Dokka # Dokka
@ -23,4 +23,4 @@ dokka_version=1.9.20
# Project data # Project data
group=dev.inmo group=dev.inmo
version=0.24.0 version=0.25.0