mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2025-10-25 17:20:18 +00:00
make it possible to get bot from DI
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
## 2.1.1
|
## 2.1.1
|
||||||
|
|
||||||
|
* `Bot`:
|
||||||
|
* Now it is possible to get bot from `koin`
|
||||||
|
|
||||||
## 2.1.0
|
## 2.1.0
|
||||||
|
|
||||||
* `Versions`:
|
* `Versions`:
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ data class PlaguBot(
|
|||||||
single { config.databaseConfig.database }
|
single { config.databaseConfig.database }
|
||||||
single { defaultJsonFormat }
|
single { defaultJsonFormat }
|
||||||
single { this@PlaguBot }
|
single { this@PlaguBot }
|
||||||
|
single { bot }
|
||||||
|
|
||||||
includes(
|
includes(
|
||||||
config.plugins.mapNotNull {
|
config.plugins.mapNotNull {
|
||||||
|
|||||||
Reference in New Issue
Block a user