start http server before VMs
This commit is contained in:
parent
5ec73d6474
commit
c52af0def9
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue