mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2024-06-26 11:38:02 +00:00
17 lines
427 B
Kotlin
17 lines
427 B
Kotlin
package dev.inmo.plagubot
|
|
|
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext
|
|
import kotlinx.serialization.SerialName
|
|
import kotlinx.serialization.Serializable
|
|
import org.jetbrains.exposed.sql.Database
|
|
|
|
@Serializable
|
|
@SerialName("Hello")
|
|
data class HelloPlugin(
|
|
val parameter: String
|
|
) : Plugin {
|
|
override suspend fun BehaviourContext.invoke(database: Database) {
|
|
println(parameter)
|
|
}
|
|
}
|