Plugin#setupBotPlugin will call startPlugin by default

This commit is contained in:
InsanusMokrassar committed 2024-09-22 13:32:59 +06:00
1 parent bc29d4f83a
commit 47f5086ebd
2 files changed
+6 -1

No files matched your search

@@ -48,7 +48,9 @@ interface Plugin : StartPlugin {
*/
suspend fun BehaviourContext.setupBotPlugin(
koin: Koin
) {}
) {
startPlugin(koin)
}
/**
* Override this method in cases when you want to declare full behaviour of the plugin. It is recommended to declare
* common logic of plugin in the [setupBotPlugin] with [BehaviourContext] receiver and use override this one