Merge pull request #64 from InsanusMokrassar/3.4.1

3.4.1
This commit is contained in:
InsanusMokrassar 2023-02-12 01:35:21 +06:00 committed by GitHub
commit 1bf59c20d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 13 deletions

View File

@ -1,5 +1,9 @@
# Changelog # Changelog
## 3.4.1
* `setupBotPlugin` now works synchronously
## 3.4.0 ## 3.4.0
* `Versions`: * `Versions`:

View File

@ -63,8 +63,7 @@ data class PlaguBot(
} }
override suspend fun BehaviourContextWithFSM<State>.setupBotPlugin(koin: Koin) { override suspend fun BehaviourContextWithFSM<State>.setupBotPlugin(koin: Koin) {
config.plugins.map { plugin -> config.plugins.forEach { plugin ->
launch {
runCatchingSafely { runCatchingSafely {
logger.i("Start loading of $plugin") logger.i("Start loading of $plugin")
with(plugin) { with(plugin) {
@ -76,7 +75,6 @@ data class PlaguBot(
logger.i("Complete loading of $plugin") logger.i("Complete loading of $plugin")
} }
} }
}.joinAll()
} }
/** /**

View File

@ -5,4 +5,4 @@ kotlin.js.generate.externals=true
kotlin.incremental=true kotlin.incremental=true
group=dev.inmo group=dev.inmo
version=3.4.0 version=3.4.1