start http server before VMs

This commit is contained in:
Elijah R 2024-06-02 13:03:06 -04:00
parent 5ec73d6474
commit c52af0def9

View file

@ -52,6 +52,9 @@ class Program
Database = new Database(Config.Database);
await Database.InitAsync();
Utilities.Log(LogLevel.INFO, "Connected to MySQL Database.");
// Start the HTTP server
HTTP = new HTTPServer();
HTTP.Run();
// Initialize the Discord bot
Discord = new DiscordBot(Config.Discord.Token, Config.Discord.ReportChannel);
await Discord.Connect();
@ -63,9 +66,6 @@ class Program
vm.UsernameIncident += (_, i) => Discord.FlagUsernameAsync(i);
await vm.OpenAsync();
}
// Start the HTTP server
HTTP = new HTTPServer();
HTTP.Run();
}
public static void Exit()