mirror of
https://github.com/InsanusMokrassar/BooruGrabberTelegramBot.git
synced 2024-11-21 15:43:46 +00:00
update dependencies
This commit is contained in:
parent
5f3991e58e
commit
132349e1ea
@ -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]
|
||||
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user