mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2025-12-05 13:55:53 +00:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3592a5907c | |||
| 328a8b215c | |||
| 57ba6411e4 | |||
| 4d53d2dc63 | |||
| 2671794f22 | |||
| 9eff09ca68 | |||
| 7f1d972105 | |||
| d05413a54e | |||
| 2342bd9a38 | |||
| c9a6df5614 | |||
| 295f1ce7ab | |||
| 4ca97546b5 | |||
| 166dc4b729 | |||
| f09929648e | |||
| 7d906e0c9c | |||
| dc32a4eb7f | |||
| 5b5f95e0ec | |||
| a0fd9012d2 |
29
CHANGELOG.md
29
CHANGELOG.md
@@ -1,5 +1,34 @@
|
||||
# Changelog
|
||||
|
||||
## 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`:
|
||||
* `tgbotapi`: `5.0.1`
|
||||
* `microutils`: `0.16.6`
|
||||
* `ktor`: `2.2.2`
|
||||
|
||||
## 3.3.0
|
||||
|
||||
* `Versions`:
|
||||
* `tgbotapi`: `5.0.0`
|
||||
|
||||
## 3.2.3
|
||||
|
||||
* `Versions`:
|
||||
* `tgbotapi`: `4.2.3`
|
||||
* `microutils`: `0.16.4`
|
||||
|
||||
## 3.2.2
|
||||
|
||||
* `Versions`:
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,4 +5,4 @@ kotlin.js.generate.externals=true
|
||||
kotlin.incremental=true
|
||||
|
||||
group=dev.inmo
|
||||
version=3.2.2
|
||||
version=3.4.1
|
||||
|
||||
@@ -4,8 +4,8 @@ kt = "1.7.22"
|
||||
kt-serialization = "1.4.1"
|
||||
kt-coroutines = "1.6.4"
|
||||
|
||||
microutils = "0.16.2"
|
||||
tgbotapi = "4.2.2"
|
||||
microutils = "0.16.8"
|
||||
tgbotapi = "5.1.0"
|
||||
kslog = "0.5.4"
|
||||
|
||||
jb-exposed = "0.41.1"
|
||||
@@ -16,7 +16,7 @@ sqlite = "3.40.0.0"
|
||||
klock = "3.4.0"
|
||||
uuid = "0.6.0"
|
||||
|
||||
ktor = "2.2.1"
|
||||
ktor = "2.2.3"
|
||||
|
||||
gh-release = "2.4.1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user