From 19bf37de7642ae8cdefd8fc6b4fadac3ac96ea9b Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Wed, 26 Sep 2018 23:49:26 +0200 Subject: ported most code to WebApiProject everything except the user identification and file locations should be somewhat functional --- DiscoBot/Program.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'DiscoBot/Program.cs') diff --git a/DiscoBot/Program.cs b/DiscoBot/Program.cs index 5bc0195..9d3c140 100644 --- a/DiscoBot/Program.cs +++ b/DiscoBot/Program.cs @@ -34,9 +34,7 @@ namespace DiscoBot string token = File.ReadAllText("Token"); //Properties.Settings.Default.Token; - - this.services = new ServiceCollection().AddSingleton(new AudioService()) - .BuildServiceProvider(); + AppDomain.CurrentDomain.ProcessExit += OnProcessExit; await this.InstallCommandsAsync(); @@ -73,6 +71,7 @@ namespace DiscoBot return; } + // Create a Command Context var context = new CommandContext(this.client, message); -- cgit v1.2.3-54-g00ecf