diff --git a/src/main/kotlin/nl/voidcorp/watchtower/Main.kt b/src/main/kotlin/nl/voidcorp/watchtower/Main.kt index fb15091..9f65104 100644 --- a/src/main/kotlin/nl/voidcorp/watchtower/Main.kt +++ b/src/main/kotlin/nl/voidcorp/watchtower/Main.kt @@ -20,7 +20,9 @@ fun main() { val token: String = System.getenv("DISCORD_TOKEN") ?: throw RuntimeException("Missing DISCORD_TOKEN in env!") Database.connect( System.getenv("JDBC_URL") ?: "jdbc:sqlite:test.db", - System.getenv("JDBC_DRIVER") ?: "org.sqlite.JDBC" + System.getenv("JDBC_DRIVER") ?: "org.sqlite.JDBC", + System.getenv("JDBC_USER") ?: "", + System.getenv("JDBC_PASSWORD") ?: "" ) TransactionManager.manager.defaultIsolationLevel = Connection.TRANSACTION_SERIALIZABLE transaction {