mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-06-18 07:45:22 +00:00
27 lines
933 B
Kotlin
27 lines
933 B
Kotlin
|
package dev.inmo.plaguposter.posts.panel
|
||
|
|
||
|
import dev.inmo.plagubot.Plugin
|
||
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext
|
||
|
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.InlineKeyboardButton
|
||
|
import kotlinx.serialization.Serializable
|
||
|
import kotlinx.serialization.json.*
|
||
|
import org.jetbrains.exposed.sql.Database
|
||
|
import org.koin.core.Koin
|
||
|
import org.koin.core.module.Module
|
||
|
|
||
|
object Plugin : Plugin {
|
||
|
@Serializable
|
||
|
internal data class Config (
|
||
|
val text: String = "You have registered new post with %s posts",
|
||
|
val buttonsPrefix: String = ". Here the buttons available for management of post:",
|
||
|
val preset: List<List<InlineKeyboardButton>>? = null
|
||
|
)
|
||
|
override fun Module.setupDI(database: Database, params: JsonObject) {
|
||
|
single { }
|
||
|
}
|
||
|
|
||
|
override suspend fun BehaviourContext.setupBotPlugin(koin: Koin) {
|
||
|
TODO("Not yet implemented")
|
||
|
}
|
||
|
}
|