mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2025-01-03 22:40:04 +00:00
update dependencies and fix admins cache api getting
This commit is contained in:
parent
772f05729e
commit
27dffce0d2
@ -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
|
||||
|
||||
|
@ -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<AdminsCacheAPI>()
|
||||
|
||||
suspend fun Chat.settings() = repo.getById(id) ?: repo.create(ChatSettings(id)).first()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user