PlaguBot/bot/src/main/kotlin/dev/inmo/plagubot/config/Config.kt

18 lines
580 B
Kotlin
Raw Normal View History

2020-11-12 05:52:09 +00:00
package dev.inmo.plagubot.config
import dev.inmo.micro_utils.common.Warning
2020-11-12 05:52:09 +00:00
import dev.inmo.plagubot.Plugin
2023-12-24 17:24:04 +00:00
import dev.inmo.tgbotapi.utils.telegramBotAPIDefaultUrl
2022-05-16 17:58:16 +00:00
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
2020-11-12 05:52:09 +00:00
@Warning("This API is internal and can be changed without notifications of mentions of changes")
2020-11-12 05:52:09 +00:00
@Serializable
data class Config(
2021-02-16 19:21:41 +00:00
val botToken: String,
2022-05-16 14:07:57 +00:00
val plugins: List<Plugin>,
2022-05-16 17:58:16 +00:00
@SerialName("database")
val databaseConfig: DatabaseConfig = DatabaseConfig(),
2023-12-24 17:24:04 +00:00
val botApiServer: String = telegramBotAPIDefaultUrl
2022-05-16 14:07:57 +00:00
)