Skip to content

Commit

Permalink
Fix issue when upgrading to Kotlin 1.5
Browse files Browse the repository at this point in the history
Not sure if this issue is related to Koin or Kotlin, but this is the bug
report InsertKoinIO/koin#871
  • Loading branch information
jvtrigueros committed May 22, 2021
1 parent 5b654cb commit 154d133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/tech/gdragon/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,15 @@ fun main() {

}
}
modules(
val modules = listOf(
databaseModule,
module {
single { Bot() }
},
datastoreModule,
optionalModules
)
koin.loadModules(modules)
}

val dataDir = app.koin.getStringProperty("BOT_DATA_DIR")
Expand Down

0 comments on commit 154d133

Please sign in to comment.