diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index adadbdf..1a1132c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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] diff --git a/src/main/kotlin/App.kt b/src/main/kotlin/App.kt index 8a6ecfe..7b952f3 100644 --- a/src/main/kotlin/App.kt +++ b/src/main/kotlin/App.kt @@ -156,7 +156,7 @@ suspend fun main(args: Array) { } 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) { }.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) { }.onFailure { e -> e.printStackTrace() if (it.chat is PrivateChat) { - reply(it, parser.getFormattedHelp()) + reply(it, parser.getFormattedHelp()!!) } }.getOrNull() }