update dependencies

This commit is contained in:
InsanusMokrassar 2023-10-05 20:29:43 +06:00
parent 5f3991e58e
commit 132349e1ea
2 changed files with 10 additions and 10 deletions

View File

@ -1,14 +1,14 @@
[versions]
kotlin = "1.8.22"
tgbotapi = "9.1.0"
microutils = "0.19.9"
kotlin = "1.9.10"
tgbotapi = "9.2.1"
microutils = "0.20.6"
imageboard = "2.6.0"
krontab = "2.1.2"
kslog = "1.1.2"
exposed = "0.42.1"
krontab = "2.2.1"
kslog = "1.2.1"
exposed = "0.43.0"
psql = "42.6.0"
clikt = "3.5.2"
clikt = "4.2.1"
[libraries]

View File

@ -156,7 +156,7 @@ suspend fun main(args: Array<String>) {
}
onCommand(Regex("(help|start)"), requireOnlyCommandInMessage = true) {
reply(it, EnableArgsParser().getFormattedHelp().takeIf { it.isNotBlank() } ?: return@onCommand)
reply(it, EnableArgsParser().getFormattedHelp() ?.takeIf { it.isNotBlank() } ?: return@onCommand)
}
onCommand("enable", requireOnlyCommandInMessage = false) {
val args = it.content.textSources.drop(1).joinToString("") { it.source }.split(" ")
@ -167,7 +167,7 @@ suspend fun main(args: Array<String>) {
}.onFailure { e ->
e.printStackTrace()
if (it.chat is PrivateChat) {
reply(it, parser.getFormattedHelp())
reply(it, parser.getFormattedHelp()!!)
}
}
runCatchingSafely {
@ -194,7 +194,7 @@ suspend fun main(args: Array<String>) {
}.onFailure { e ->
e.printStackTrace()
if (it.chat is PrivateChat) {
reply(it, parser.getFormattedHelp())
reply(it, parser.getFormattedHelp()!!)
}
}.getOrNull()
}