mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2025-12-05 22:06:02 +00:00
Compare commits
45 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 59b91fc1ff | |||
| 4293096ed2 | |||
| 42dd98426c | |||
| 744520c73f | |||
| 1b8ae09866 | |||
| 3027e39665 | |||
| b77fe446f8 | |||
| bc11d7508f | |||
| cd9af3c216 | |||
| c60face0e6 | |||
| 334ca1a184 | |||
| b7bb6f10a9 | |||
| 7b14343cc5 | |||
| 62c1f87e95 | |||
| 317f15bbb8 | |||
| 34c0c05715 | |||
| d23bde75b5 | |||
| 46e48efe52 | |||
| 1bf59c20d4 | |||
| 3592a5907c | |||
| 328a8b215c | |||
| 57ba6411e4 | |||
| 4d53d2dc63 | |||
| 2671794f22 | |||
| 9eff09ca68 | |||
| 7f1d972105 | |||
| d05413a54e | |||
| 2342bd9a38 | |||
| c9a6df5614 | |||
| 295f1ce7ab | |||
| 4ca97546b5 | |||
| 166dc4b729 | |||
| f09929648e | |||
| 7d906e0c9c | |||
| dc32a4eb7f | |||
| 5b5f95e0ec | |||
| a0fd9012d2 | |||
| 14910ed568 | |||
| ccc936f821 | |||
| 877e693eb3 | |||
| 9f3634f2ec | |||
| 08d905805a | |||
| 92cf2167cd | |||
| 3d6a208aa8 | |||
| 6e61f364da |
74
CHANGELOG.md
74
CHANGELOG.md
@@ -1,5 +1,79 @@
|
||||
# Changelog
|
||||
|
||||
## 4.0.3
|
||||
|
||||
* `Versions`:
|
||||
* `tgbotapi`: `6.0.3`
|
||||
* `microutils`: `0.17.2`
|
||||
|
||||
## 4.0.2
|
||||
|
||||
* `Versions`:
|
||||
* `tgbotapi`: `6.0.2`
|
||||
|
||||
## 4.0.1
|
||||
|
||||
* `Versions`:
|
||||
* `tgbotapi`: `6.0.1`
|
||||
* `microutils`: `17.0.1`
|
||||
* `ktor`: `2.2.4`
|
||||
|
||||
## 4.0.0
|
||||
|
||||
* `Versions`:
|
||||
* `kotlin`: `1.8.10`
|
||||
* `tgbotapi`: `6.0.0`
|
||||
* `microutils`: `0.17.0`
|
||||
|
||||
## 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`:
|
||||
* `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`:
|
||||
* `tgbotapi`: `4.2.2`
|
||||
* `microutils`: `0.16.2`
|
||||
|
||||
## 3.2.1
|
||||
|
||||
* `Versions`:
|
||||
* `tgbotapi`: `4.2.1`
|
||||
* `microutils`: `0.16.0`
|
||||
* `ktor`: `2.2.1`
|
||||
|
||||
## 3.2.0
|
||||
|
||||
* `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.0
|
||||
version=4.0.3
|
||||
|
||||
@@ -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.15.0"
|
||||
tgbotapi = "4.2.0"
|
||||
kslog = "0.5.4"
|
||||
microutils = "0.17.2"
|
||||
tgbotapi = "6.0.3"
|
||||
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.1.3"
|
||||
ktor = "2.2.4"
|
||||
|
||||
gh-release = "2.4.1"
|
||||
|
||||
koin = "3.2.2"
|
||||
koin = "3.3.2"
|
||||
|
||||
[libraries]
|
||||
|
||||
|
||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user