mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2025-10-26 09:00:07 +00:00
experimentally add CaptchaProvider
This commit is contained in:
@@ -1,18 +1,13 @@
|
||||
package dev.inmo.plagubot.plugins.captcha.settings
|
||||
|
||||
import com.soywiz.klock.TimeSpan
|
||||
import dev.inmo.plagubot.plugins.captcha.provider.CaptchaProvider
|
||||
import dev.inmo.plagubot.plugins.captcha.provider.SimpleCaptchaProvider
|
||||
import dev.inmo.tgbotapi.types.ChatId
|
||||
import dev.inmo.tgbotapi.types.Seconds
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.Transient
|
||||
|
||||
@Serializable
|
||||
data class ChatSettings(
|
||||
val chatId: ChatId,
|
||||
val checkTime: Seconds = 60,
|
||||
val captchaText: String = "solve next captcha:",
|
||||
val captchaProvider: CaptchaProvider = SimpleCaptchaProvider(),
|
||||
val autoRemoveCommands: Boolean = false
|
||||
) {
|
||||
@Transient
|
||||
val checkTimeSpan = TimeSpan(checkTime * 1000.0)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user