mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2025-12-05 05:45:57 +00:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d7638d620f | |||
| 8885047409 | |||
| f09f13c13d | |||
| 8853af9a26 | |||
| ab98b59633 | |||
| d88cf0c911 | |||
| 5145b22dd5 | |||
| 90dd06db6d | |||
| 4e9b8349eb | |||
| 466e531faf |
18
CHANGELOG.md
18
CHANGELOG.md
@@ -1,7 +1,23 @@
|
||||
# Changelog
|
||||
|
||||
## 0.3.0
|
||||
## 0.3.2
|
||||
|
||||
* `Versions`
|
||||
* `kotlin`: `1.5.20` -> `1.5.31`
|
||||
* `coroutines`: `1.5.0` -> `1.5.2`
|
||||
* `serialization`: `1.2.1` -> `1.2.2`
|
||||
* `exposed`: `0.32.1` -> `0.34.2`
|
||||
* `tgbotapi`: `0.35.1` -> `0.35.9`
|
||||
* `microutils`: `0.5.15` -> `0.5.28`
|
||||
|
||||
## 0.3.1
|
||||
|
||||
* `Versions`
|
||||
* `kotlin`: `1.5.10` -> `1.5.20`
|
||||
* `tgbotapi`: `0.35.0` -> `0.35.1`
|
||||
* `microutils`: `0.5.7` -> `0.5.15`
|
||||
|
||||
## 0.3.0
|
||||
|
||||
* `Versions`
|
||||
* `kotlin`: `1.4.32` -> `1.5.10`
|
||||
|
||||
@@ -5,18 +5,6 @@ import kotlinx.coroutines.*
|
||||
import kotlinx.serialization.InternalSerializationApi
|
||||
import java.io.File
|
||||
|
||||
@Deprecated(
|
||||
"This method is redundant due to new class PlaguBot",
|
||||
ReplaceWith(
|
||||
"PlaguBot(config).start(scope)",
|
||||
"dev.inmo.plagubot.PlaguBot"
|
||||
)
|
||||
)
|
||||
suspend inline fun initPlaguBot(
|
||||
config: Config,
|
||||
scope: CoroutineScope = CoroutineScope(Dispatchers.Default)
|
||||
): Job = PlaguBot(config).start(scope)
|
||||
|
||||
/**
|
||||
* This method by default expects one argument in [args] field: path to config
|
||||
*/
|
||||
|
||||
@@ -4,8 +4,7 @@ import dev.inmo.micro_utils.coroutines.safelyWithoutExceptions
|
||||
import dev.inmo.plagubot.config.*
|
||||
import dev.inmo.tgbotapi.bot.Ktor.telegramBot
|
||||
import dev.inmo.tgbotapi.extensions.api.bot.setMyCommands
|
||||
import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext
|
||||
import dev.inmo.tgbotapi.extensions.behaviour_builder.buildBehaviour
|
||||
import dev.inmo.tgbotapi.extensions.behaviour_builder.*
|
||||
import dev.inmo.tgbotapi.types.BotCommand
|
||||
import dev.inmo.tgbotapi.types.botCommandsLimit
|
||||
import kotlinx.coroutines.*
|
||||
@@ -50,7 +49,7 @@ data class PlaguBot(
|
||||
*/
|
||||
suspend fun start(
|
||||
scope: CoroutineScope = CoroutineScope(Dispatchers.Default)
|
||||
): Job = bot.buildBehaviour(scope) {
|
||||
): Job = bot.buildBehaviourWithLongPolling(scope) {
|
||||
invoke(database, paramsMap)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,19 +4,19 @@ org.gradle.parallel=true
|
||||
kotlin.js.generate.externals=true
|
||||
kotlin.incremental=true
|
||||
|
||||
kotlin_version=1.5.10
|
||||
kotlin_coroutines_version=1.5.0
|
||||
kotlin_serialisation_runtime_version=1.2.1
|
||||
kotlin_exposed_version=0.32.1
|
||||
kotlin_version=1.5.31
|
||||
kotlin_coroutines_version=1.5.2
|
||||
kotlin_serialisation_runtime_version=1.3.1
|
||||
kotlin_exposed_version=0.36.1
|
||||
|
||||
sdi_version=0.5.0
|
||||
tgbotapi_version=0.35.0
|
||||
microutils_version=0.5.7
|
||||
sdi_version=0.6.0
|
||||
tgbotapi_version=0.37.0
|
||||
microutils_version=0.8.2
|
||||
klassindex_version=4.1.0-rc.1
|
||||
|
||||
sqlite_version=3.34.0
|
||||
sqlite_version=3.36.0.3
|
||||
|
||||
github_release_plugin_version=2.2.12
|
||||
|
||||
group=dev.inmo
|
||||
version=0.3.0
|
||||
version=0.4.0
|
||||
|
||||
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-6.8.3-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
Reference in New Issue
Block a user