diff --git a/EmperorPalpatine/Program.cs b/EmperorPalpatine/Program.cs index 0738d65..e328c69 100644 --- a/EmperorPalpatine/Program.cs +++ b/EmperorPalpatine/Program.cs @@ -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()