Migrations and proper database providers.

This commit is contained in:
Karolis2011
2019-06-18 19:37:59 +03:00
parent 94c92a47dc
commit 915a770175
2 changed files with 7 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ namespace EventBot
services.GetRequiredService<CommandService>().Log += LogAsync;
services.GetRequiredService<CommandHandlingService>().Log += LogAsync;
services.GetRequiredService<DatabaseService>();
await services.GetRequiredService<DatabaseService>().InitializeAsync();
// Tokens should be considered secret data and never hard-coded.
// We can read from the environment variable to avoid hardcoding.