From 6784a3c49acb19f3ec0dc9f13ab5647445eff60d Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Sep 2024 18:22:07 +0600 Subject: [PATCH] update plagubot --- .../dev/inmo/tgbotapi/libraries/cache/admins/AdminsPlugin.kt | 3 ++- gradle.properties | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cache/admins/plagubot/src/jvmMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/AdminsPlugin.kt b/cache/admins/plagubot/src/jvmMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/AdminsPlugin.kt index a7ec050..517d0af 100644 --- a/cache/admins/plagubot/src/jvmMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/AdminsPlugin.kt +++ b/cache/admins/plagubot/src/jvmMain/kotlin/dev/inmo/tgbotapi/libraries/cache/admins/AdminsPlugin.kt @@ -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.mappers.withMapper import dev.inmo.plagubot.Plugin +import dev.inmo.plagubot.database 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.DynamicAdminsCacheSettingsAPI @@ -44,7 +45,7 @@ class AdminsPlugin : Plugin { return flow.filterNotNull().first() } - override fun Module.setupDI(database: Database, params: JsonObject) { + override fun Module.setupDI(config: JsonObject) { single { this@AdminsPlugin } val scopeQualifier = named("admins plugin scope") single(scopeQualifier) { CoroutineScope(Dispatchers.IO + SupervisorJob()) } diff --git a/gradle.properties b/gradle.properties index f7411c9..f97dcac 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,7 +14,7 @@ github_release_plugin_version=2.5.2 tgbotapi_version=18.2.0 micro_utils_version=0.22.2 exposed_version=0.54.0 -plagubot_version=9.3.0 +plagubot_version=10.0.0 # Dokka @@ -23,4 +23,4 @@ dokka_version=1.9.20 # Project data group=dev.inmo -version=0.24.0 +version=0.25.0