mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2024-10-31 21:13:46 +00:00
Plugin#setupBotPlugin will call startPlugin by default
This commit is contained in:
parent
bc29d4f83a
commit
47f5086ebd
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
## 9.3.1
|
## 9.3.1
|
||||||
|
|
||||||
|
* `Plugin`:
|
||||||
|
* `Plugin#setupBotPlugin` now will call start plugin by default
|
||||||
|
|
||||||
## 9.3.0
|
## 9.3.0
|
||||||
|
|
||||||
* `Bot`:
|
* `Bot`:
|
||||||
|
@ -48,7 +48,9 @@ interface Plugin : StartPlugin {
|
|||||||
*/
|
*/
|
||||||
suspend fun BehaviourContext.setupBotPlugin(
|
suspend fun BehaviourContext.setupBotPlugin(
|
||||||
koin: Koin
|
koin: Koin
|
||||||
) {}
|
) {
|
||||||
|
startPlugin(koin)
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Override this method in cases when you want to declare full behaviour of the plugin. It is recommended to declare
|
* 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
|
* common logic of plugin in the [setupBotPlugin] with [BehaviourContext] receiver and use override this one
|
||||||
|
Loading…
Reference in New Issue
Block a user