Compare commits

...

13 Commits

5 changed files with 38 additions and 22 deletions

View File

@@ -1,5 +1,23 @@
# Changelog
## 3.5.0
* `Versions`:
* `tgbotapi`: `5.2.0`
* `microutils`: `0.16.10`
* `koin`: `3.3.2`
## 3.4.1
* `setupBotPlugin` now works synchronously
## 3.4.0
* `Versions`:
* `tgbotapi`: `5.1.0`
* `microutils`: `0.16.8`
* `ktor`: `2.2.3`
## 3.3.1
* `Versions`:

View File

@@ -63,20 +63,18 @@ data class PlaguBot(
}
override suspend fun BehaviourContextWithFSM<State>.setupBotPlugin(koin: Koin) {
config.plugins.map { plugin ->
launch {
runCatchingSafely {
logger.i("Start loading of $plugin")
with(plugin) {
setupBotPlugin(koin)
}
}.onFailure { e ->
logger.w("Unable to load bot part of $plugin", e)
}.onSuccess {
logger.i("Complete loading of $plugin")
config.plugins.forEach { plugin ->
runCatchingSafely {
logger.i("Start loading of $plugin")
with(plugin) {
setupBotPlugin(koin)
}
}.onFailure { e ->
logger.w("Unable to load bot part of $plugin", e)
}.onSuccess {
logger.i("Complete loading of $plugin")
}
}.joinAll()
}
}
/**

View File

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

View File

@@ -1,12 +1,12 @@
[versions]
kt = "1.7.22"
kt-serialization = "1.4.1"
kt = "1.8.10"
kt-serialization = "1.5.0"
kt-coroutines = "1.6.4"
microutils = "0.16.6"
tgbotapi = "5.0.1"
kslog = "0.5.4"
microutils = "0.17.0"
tgbotapi = "6.0.0"
kslog = "1.0.0"
jb-exposed = "0.41.1"
jb-dokka = "1.7.20"
@@ -14,13 +14,13 @@ jb-dokka = "1.7.20"
sqlite = "3.40.0.0"
klock = "3.4.0"
uuid = "0.6.0"
uuid = "0.7.0"
ktor = "2.2.2"
ktor = "2.2.3"
gh-release = "2.4.1"
koin = "3.2.2"
koin = "3.3.2"
[libraries]

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists