mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2024-11-22 07:33:46 +00:00
get back koin dependency
This commit is contained in:
parent
30cf190461
commit
fbe166f2b4
@ -19,6 +19,7 @@ dependencies {
|
|||||||
api libs.tgbotapi
|
api libs.tgbotapi
|
||||||
api libs.tgbotapi.behaviourBuilder.fsm
|
api libs.tgbotapi.behaviourBuilder.fsm
|
||||||
api libs.microutils.repos.exposed
|
api libs.microutils.repos.exposed
|
||||||
|
api libs.microutils.koin
|
||||||
api libs.kslog
|
api libs.kslog
|
||||||
|
|
||||||
api libs.sqlite
|
api libs.sqlite
|
||||||
|
@ -95,8 +95,8 @@ data class PlaguBot(
|
|||||||
GlobalContext.startKoin(koinApp)
|
GlobalContext.startKoin(koinApp)
|
||||||
logger.i("Koin started")
|
logger.i("Koin started")
|
||||||
lateinit var behaviourContext: BehaviourContext
|
lateinit var behaviourContext: BehaviourContext
|
||||||
val onStartContextsConflictResolver = koinApp.koin.getAllDistinct<OnStartContextsConflictResolver>()
|
val onStartContextsConflictResolver by lazy { koinApp.koin.getAllDistinct<OnStartContextsConflictResolver>() }
|
||||||
val onUpdateContextsConflictResolver = koinApp.koin.getAllDistinct<OnUpdateContextsConflictResolver>()
|
val onUpdateContextsConflictResolver by lazy { koinApp.koin.getAllDistinct<OnUpdateContextsConflictResolver>() }
|
||||||
bot.buildBehaviourWithFSM(
|
bot.buildBehaviourWithFSM(
|
||||||
scope = scope,
|
scope = scope,
|
||||||
defaultExceptionsHandler = {
|
defaultExceptionsHandler = {
|
||||||
|
Loading…
Reference in New Issue
Block a user