mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2025-09-15 21:39:27 +00:00
setupBotPlugin now works synchronously
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
## 3.4.1
|
||||
|
||||
* `setupBotPlugin` now works synchronously
|
||||
|
||||
## 3.4.0
|
||||
|
||||
* `Versions`:
|
||||
|
@@ -63,8 +63,7 @@ data class PlaguBot(
|
||||
}
|
||||
|
||||
override suspend fun BehaviourContextWithFSM<State>.setupBotPlugin(koin: Koin) {
|
||||
config.plugins.map { plugin ->
|
||||
launch {
|
||||
config.plugins.forEach { plugin ->
|
||||
runCatchingSafely {
|
||||
logger.i("Start loading of $plugin")
|
||||
with(plugin) {
|
||||
@@ -76,7 +75,6 @@ data class PlaguBot(
|
||||
logger.i("Complete loading of $plugin")
|
||||
}
|
||||
}
|
||||
}.joinAll()
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user