mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2024-06-02 07:55:20 +00:00
19 lines
511 B
Kotlin
19 lines
511 B
Kotlin
package dev.inmo.plagubot.plugins.captcha.settings
|
|
|
|
import com.soywiz.klock.TimeSpan
|
|
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 autoRemoveCommands: Boolean = false
|
|
) {
|
|
@Transient
|
|
val checkTimeSpan = TimeSpan(checkTime * 1000.0)
|
|
}
|