From 31d29712befa6fcd84b29c7eda50f5c30ea5061e Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 1 Jul 2023 03:54:42 +0600 Subject: [PATCH] small improvements --- RightsChangerBot/src/main/kotlin/RightsChanger.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RightsChangerBot/src/main/kotlin/RightsChanger.kt b/RightsChangerBot/src/main/kotlin/RightsChanger.kt index 72cedc7..859f81e 100644 --- a/RightsChangerBot/src/main/kotlin/RightsChanger.kt +++ b/RightsChangerBot/src/main/kotlin/RightsChanger.kt @@ -1,3 +1,4 @@ +import dev.inmo.micro_utils.coroutines.runCatchingSafely import dev.inmo.tgbotapi.bot.ktor.telegramBot import dev.inmo.tgbotapi.extensions.api.bot.setMyCommands import dev.inmo.tgbotapi.extensions.api.chat.get.getChat @@ -111,7 +112,7 @@ suspend fun main(args: Array) { bot.buildBehaviourWithLongPolling( defaultExceptionsHandler = { - println(it) + it.printStackTrace() } ) { onCommand("simple", initialFilter = { it.chat is PublicChat && it.fromUserMessageOrNull() ?.user ?.id == allowedAdmin }) {