mirror of
				https://github.com/InsanusMokrassar/BooruGrabberTelegramBot.git
				synced 2025-11-03 21:52:33 +00:00 
			
		
		
		
	update dependencies
This commit is contained in:
		@@ -1,14 +1,14 @@
 | 
				
			|||||||
[versions]
 | 
					[versions]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
kotlin = "1.8.22"
 | 
					kotlin = "1.9.10"
 | 
				
			||||||
tgbotapi = "9.1.0"
 | 
					tgbotapi = "9.2.1"
 | 
				
			||||||
microutils = "0.19.9"
 | 
					microutils = "0.20.6"
 | 
				
			||||||
imageboard = "2.6.0"
 | 
					imageboard = "2.6.0"
 | 
				
			||||||
krontab = "2.1.2"
 | 
					krontab = "2.2.1"
 | 
				
			||||||
kslog = "1.1.2"
 | 
					kslog = "1.2.1"
 | 
				
			||||||
exposed = "0.42.1"
 | 
					exposed = "0.43.0"
 | 
				
			||||||
psql = "42.6.0"
 | 
					psql = "42.6.0"
 | 
				
			||||||
clikt = "3.5.2"
 | 
					clikt = "4.2.1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[libraries]
 | 
					[libraries]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -156,7 +156,7 @@ suspend fun main(args: Array<String>) {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        onCommand(Regex("(help|start)"), requireOnlyCommandInMessage = true) {
 | 
					        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) {
 | 
					        onCommand("enable", requireOnlyCommandInMessage = false) {
 | 
				
			||||||
            val args = it.content.textSources.drop(1).joinToString("") { it.source }.split(" ")
 | 
					            val args = it.content.textSources.drop(1).joinToString("") { it.source }.split(" ")
 | 
				
			||||||
@@ -167,7 +167,7 @@ suspend fun main(args: Array<String>) {
 | 
				
			|||||||
            }.onFailure { e ->
 | 
					            }.onFailure { e ->
 | 
				
			||||||
                e.printStackTrace()
 | 
					                e.printStackTrace()
 | 
				
			||||||
                if (it.chat is PrivateChat) {
 | 
					                if (it.chat is PrivateChat) {
 | 
				
			||||||
                    reply(it, parser.getFormattedHelp())
 | 
					                    reply(it, parser.getFormattedHelp()!!)
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            runCatchingSafely {
 | 
					            runCatchingSafely {
 | 
				
			||||||
@@ -194,7 +194,7 @@ suspend fun main(args: Array<String>) {
 | 
				
			|||||||
                }.onFailure { e ->
 | 
					                }.onFailure { e ->
 | 
				
			||||||
                    e.printStackTrace()
 | 
					                    e.printStackTrace()
 | 
				
			||||||
                    if (it.chat is PrivateChat) {
 | 
					                    if (it.chat is PrivateChat) {
 | 
				
			||||||
                        reply(it, parser.getFormattedHelp())
 | 
					                        reply(it, parser.getFormattedHelp()!!)
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }.getOrNull()
 | 
					                }.getOrNull()
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user