fuck
This commit is contained in:
parent
c52af0def9
commit
7ed9b56a7f
2 changed files with 5 additions and 3 deletions
|
@ -140,7 +140,8 @@ public class HTTPServer
|
|||
return Results.Json(new VMInfo(VM.cvm));
|
||||
}
|
||||
|
||||
public void Run() {
|
||||
this.app.Run();
|
||||
public Task RunAsync()
|
||||
{
|
||||
return this.app.RunAsync();
|
||||
}
|
||||
}
|
|
@ -54,7 +54,7 @@ class Program
|
|||
Utilities.Log(LogLevel.INFO, "Connected to MySQL Database.");
|
||||
// Start the HTTP server
|
||||
HTTP = new HTTPServer();
|
||||
HTTP.Run();
|
||||
var t = HTTP.RunAsync();
|
||||
// Initialize the Discord bot
|
||||
Discord = new DiscordBot(Config.Discord.Token, Config.Discord.ReportChannel);
|
||||
await Discord.Connect();
|
||||
|
@ -66,6 +66,7 @@ class Program
|
|||
vm.UsernameIncident += (_, i) => Discord.FlagUsernameAsync(i);
|
||||
await vm.OpenAsync();
|
||||
}
|
||||
await t;
|
||||
}
|
||||
|
||||
public static void Exit()
|
||||
|
|
Loading…
Reference in a new issue