Compare commits

..

6 Commits
3.4.0 ... 3.5.0

Author SHA1 Message Date
d23bde75b5 update dependencies 2023-02-17 14:08:36 +06:00
46e48efe52 start 3.5.0 2023-02-17 14:07:28 +06:00
1bf59c20d4 Merge pull request #64 from InsanusMokrassar/3.4.1
3.4.1
2023-02-12 01:35:21 +06:00
3592a5907c setupBotPlugin now works synchronously 2023-02-12 01:29:45 +06:00
328a8b215c start 3.4.1 2023-02-12 01:28:35 +06:00
57ba6411e4 Merge pull request #63 from InsanusMokrassar/3.4.0
3.4.0
2023-02-06 15:27:10 +06:00
4 changed files with 25 additions and 16 deletions

View File

@@ -1,5 +1,16 @@
# 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`:

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.4.0
version=3.5.0

View File

@@ -4,8 +4,8 @@ kt = "1.7.22"
kt-serialization = "1.4.1"
kt-coroutines = "1.6.4"
microutils = "0.16.8"
tgbotapi = "5.1.0"
microutils = "0.16.10"
tgbotapi = "5.2.0"
kslog = "0.5.4"
jb-exposed = "0.41.1"
@@ -20,7 +20,7 @@ ktor = "2.2.3"
gh-release = "2.4.1"
koin = "3.2.2"
koin = "3.3.2"
[libraries]