mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2026-11-03 01:53:47 +00:00
Plugin#setupBotPlugin will call startPlugin by default
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user