mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2024-11-25 03:28:52 +00:00
add several feedback replies for plugin
This commit is contained in:
parent
852262853e
commit
0e097fc9ba
@ -162,10 +162,13 @@ class CaptchaBotPlugin : Plugin {
|
||||
}
|
||||
sendMessage(it.chat, "Settings updated").also { sent ->
|
||||
delay(5000L)
|
||||
|
||||
if (settings.autoRemoveCommands) {
|
||||
deleteMessage(sent)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onCommand(
|
||||
enableAutoDeleteCommands,
|
||||
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user