From cdf94ec2eb9c96f8189ff673d1f8aff884ab04d9 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 20 Aug 2022 22:08:13 +0600 Subject: [PATCH 1/2] start 2.1.1 --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4861d4c..51134a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 2.1.1 + ## 2.1.0 * `Versions`: diff --git a/gradle.properties b/gradle.properties index 0644318..5f8dc3e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ kotlin.js.generate.externals=true kotlin.incremental=true group=dev.inmo -version=2.1.0 +version=2.1.1 From 7286cf401b6a348d86fe94681bf00336fc228b63 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 20 Aug 2022 22:10:08 +0600 Subject: [PATCH 2/2] make it possible to get bot from DI --- CHANGELOG.md | 3 +++ bot/src/main/kotlin/dev/inmo/plagubot/PlaguBot.kt | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51134a1..f7d2507 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 2.1.1 +* `Bot`: + * Now it is possible to get bot from `koin` + ## 2.1.0 * `Versions`: diff --git a/bot/src/main/kotlin/dev/inmo/plagubot/PlaguBot.kt b/bot/src/main/kotlin/dev/inmo/plagubot/PlaguBot.kt index 756aac8..5cec546 100644 --- a/bot/src/main/kotlin/dev/inmo/plagubot/PlaguBot.kt +++ b/bot/src/main/kotlin/dev/inmo/plagubot/PlaguBot.kt @@ -45,6 +45,7 @@ data class PlaguBot( single { config.databaseConfig.database } single { defaultJsonFormat } single { this@PlaguBot } + single { bot } includes( config.plugins.mapNotNull {