diff --git a/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt b/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt index ff699df..3a55707 100644 --- a/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt +++ b/src/main/kotlin/dev/inmo/plagubot/plugins/captcha/Plugin.kt @@ -162,7 +162,10 @@ class CaptchaBotPlugin : Plugin { } sendMessage(it.chat, "Settings updated").also { sent -> delay(5000L) - deleteMessage(sent) + + if (settings.autoRemoveCommands) { + deleteMessage(sent) + } } } } @@ -205,6 +208,8 @@ class CaptchaBotPlugin : Plugin { settings.copy(enabled = false) ) + reply(message, "Captcha has been disabled") + if (settings.autoRemoveCommands) { deleteMessage(message) } @@ -220,6 +225,8 @@ class CaptchaBotPlugin : Plugin { settings.copy(enabled = true) ) + reply(message, "Captcha has been enabled") + if (settings.autoRemoveCommands) { deleteMessage(message) } @@ -235,6 +242,8 @@ class CaptchaBotPlugin : Plugin { settings.copy(autoRemoveEvents = true) ) + reply(message, "Ok, user joined service messages will be deleted") + if (settings.autoRemoveCommands) { deleteMessage(message) } @@ -250,6 +259,8 @@ class CaptchaBotPlugin : Plugin { settings.copy(autoRemoveEvents = false) ) + reply(message, "Ok, user joined service messages will not be deleted") + if (settings.autoRemoveCommands) { deleteMessage(message) }