From 2ba35e7b9b6dae7b84869d77893ced077779d89e Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 22 Sep 2022 15:24:07 +0600 Subject: [PATCH] replace unset of welcome message by logging of errors on welcome sending --- welcome/src/main/kotlin/WelcomePlugin.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/welcome/src/main/kotlin/WelcomePlugin.kt b/welcome/src/main/kotlin/WelcomePlugin.kt index 7f16d4b..c7473b0 100644 --- a/welcome/src/main/kotlin/WelcomePlugin.kt +++ b/welcome/src/main/kotlin/WelcomePlugin.kt @@ -1,4 +1,5 @@ import db.WelcomeTable +import dev.inmo.kslog.common.e import dev.inmo.kslog.common.logger import dev.inmo.plagubot.Plugin import dev.inmo.plagubot.plugins.commands.full @@ -196,7 +197,7 @@ class WelcomePlugin : Plugin { chatSettings.sourceMessageId ) } catch (e: RequestException) { - welcomeTable.unset(it.chat.id) + log.e("Unable to send welcome message", e) } } }