mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2024-11-25 11:38:55 +00:00
now user captcha checking is in parallel
This commit is contained in:
parent
4a7339afd9
commit
3a7ef56565
@ -103,8 +103,12 @@ class CaptchaBotPlugin : Plugin {
|
||||
)
|
||||
}
|
||||
val settings = it.chat.settings()
|
||||
doInSubContext(stopOnCompletion = false) {
|
||||
launch {
|
||||
settings.captchaProvider.apply { doAction(it.date, chat, newUsers) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (adminsAPI != null) {
|
||||
onCommand(changeCaptchaMethodCommandRegex) {
|
||||
|
Loading…
Reference in New Issue
Block a user