add welcome plugin (currently uncompilable) and small fix in kdoc of template

This commit is contained in:
2022-07-09 13:44:12 +06:00
parent 3de960b26a
commit 5861b909cd
3 changed files with 88 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ import org.koin.core.module.Module
@Serializable
class TemplatePlugin : Plugin {
/**
* Default logger of [TemplatePlugin] got with [logger]
* Default logger of [WelcomePlugin] got with [logger]
*/
private val log = logger
@@ -43,7 +43,7 @@ class TemplatePlugin : Plugin {
}
/**
* Final configuration of bot. Here we are getting [Config] from [koin] and configure reaction on `/start` command
* Final configuration of bot. Here we are getting [Config] from [koin]
*/
override suspend fun BehaviourContext.setupBotPlugin(koin: Koin) {
val config = koin.getOrNull<Config>()