mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2024-11-25 11:38:55 +00:00
small update
This commit is contained in:
parent
87a6cab33e
commit
8cc2503934
@ -165,7 +165,7 @@ data class SimpleCaptchaProvider(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val job = launch {
|
val job = parallel {
|
||||||
waitDataCallbackQuery {
|
waitDataCallbackQuery {
|
||||||
if (it.id == user.id && this.data == callbackData) {
|
if (it.id == user.id && this.data == callbackData) {
|
||||||
this
|
this
|
||||||
@ -179,15 +179,15 @@ data class SimpleCaptchaProvider(
|
|||||||
stop()
|
stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
launch {
|
|
||||||
delay((userBanDateTime - eventDateTime).millisecondsLong)
|
delay((userBanDateTime - eventDateTime).millisecondsLong)
|
||||||
|
|
||||||
|
if (job.isActive) {
|
||||||
job.cancel()
|
job.cancel()
|
||||||
if (kick) {
|
if (kick) {
|
||||||
safelyWithoutExceptions { kickChatMember(chat, it) }
|
safelyWithoutExceptions { kickChatMember(chat, it) }
|
||||||
}
|
}
|
||||||
stop()
|
|
||||||
}
|
}
|
||||||
|
stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user