mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2026-11-29 06:43:20 +00:00
small update
This commit is contained in:
1 parent
87a6cab33e
commit
8cc2503934
1 file changed
+4
-4
@@ -165,7 +165,7 @@ data class SimpleCaptchaProvider(
|
||||
}
|
||||
}
|
||||
|
||||
val job = launch {
|
||||
val job = parallel {
|
||||
waitDataCallbackQuery {
|
||||
if (it.id == user.id && this.data == callbackData) {
|
||||
this
|
||||
@@ -179,15 +179,15 @@ data class SimpleCaptchaProvider(
|
||||
stop()
|
||||
}
|
||||
|
||||
launch {
|
||||
delay((userBanDateTime - eventDateTime).millisecondsLong)
|
||||
delay((userBanDateTime - eventDateTime).millisecondsLong)
|
||||
|
||||
if (job.isActive) {
|
||||
job.cancel()
|
||||
if (kick) {
|
||||
safelyWithoutExceptions { kickChatMember(chat, it) }
|
||||
}
|
||||
stop()
|
||||
}
|
||||
stop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user