From f9b7d444a682fbedc6976f23e6d5f293983452d8 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 Sep 2024 13:33:53 +0600 Subject: [PATCH] add note about startPlugin in setupBotPlugin --- plugin/src/main/kotlin/dev/inmo/plagubot/Plugin.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/src/main/kotlin/dev/inmo/plagubot/Plugin.kt b/plugin/src/main/kotlin/dev/inmo/plagubot/Plugin.kt index 0797d8f..7a8ed97 100644 --- a/plugin/src/main/kotlin/dev/inmo/plagubot/Plugin.kt +++ b/plugin/src/main/kotlin/dev/inmo/plagubot/Plugin.kt @@ -45,6 +45,8 @@ interface Plugin : StartPlugin { /** * Override this method in cases when you want to declare common bot behaviour. In case you wish to use FSM, you * should override the method with receiver [BehaviourContextWithFSM] + * + * Besides, this method by default will call [startPlugin] */ suspend fun BehaviourContext.setupBotPlugin( koin: Koin