Skip to content

Commit

Permalink
fix(close #120): fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
y9san9 committed Aug 18, 2024
1 parent a156340 commit 84531e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/kotlin/me/y9san9/prizebot/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ suspend fun main() = coroutineScope {
?: return@run null,
driver = System.getenv("DATABASE_DRIVER")
)
} ?: DatabaseConfig.InMemory

System.err.println("Warning! Using in-memory database. All changes will be lost after restart. " +
"To with database, provide DATABASE_URL, DATABASE_USER and DATABASE_PASSWORD env variables")
} ?: DatabaseConfig.InMemory.apply {
System.err.println("Warning! Using in-memory database. All changes will be lost after restart. " +
"To with database, provide DATABASE_URL, DATABASE_USER and DATABASE_PASSWORD env variables")
}

Prizebot(
botToken = token,
Expand Down

0 comments on commit 84531e3

Please sign in to comment.