From 27dffce0d2945a69b4b2e0f3a4c5682720108cd2 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 19 Sep 2022 01:40:59 +0600 Subject: [PATCH] update dependencies and fix admins cache api getting --- gradle.properties | 4 ++-- src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 6d9ba20..47221e5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,9 +7,9 @@ kotlin.incremental=true kotlin_version=1.7.10 kotlin_coroutines_version=1.6.4 kotlin_serialisation_runtime_version=1.4.0 -plagubot_version=2.3.1 +plagubot_version=2.3.2 -micro_utils_version=0.12.11 +micro_utils_version=0.12.13 tgbotapi_libraries_version=0.5.3 commands_version=0.3.3 diff --git a/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt b/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt index 7a371af..7e82962 100644 --- a/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt +++ b/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt @@ -125,7 +125,7 @@ class CaptchaBotPlugin : Plugin { override suspend fun BehaviourContext.setupBotPlugin(koin: Koin) { val repo: CaptchaChatsSettingsRepo by koin.inject() - val adminsAPI = koin.adminsPlugin ?.adminsAPI(koin.get()) + val adminsAPI = koin.get() suspend fun Chat.settings() = repo.getById(id) ?: repo.create(ChatSettings(id)).first()