mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2025-09-15 13:29:46 +00:00
first version
This commit is contained in:
17
plugin/src/main/kotlin/dev/inmo/plagubot/Plugin.kt
Normal file
17
plugin/src/main/kotlin/dev/inmo/plagubot/Plugin.kt
Normal file
@@ -0,0 +1,17 @@
|
||||
package dev.inmo.plagubot
|
||||
|
||||
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||
import dev.inmo.tgbotapi.types.BotCommand
|
||||
import dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import org.jetbrains.exposed.sql.Database
|
||||
|
||||
interface Plugin {
|
||||
suspend fun getCommands(): List<BotCommand> = emptyList()
|
||||
suspend operator fun invoke(
|
||||
bot: TelegramBot,
|
||||
database: Database,
|
||||
updatesFilter: FlowsUpdatesFilter,
|
||||
scope: CoroutineScope
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user