summaryrefslogtreecommitdiff
path: root/DiscoBot/Program.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-09-26 23:49:26 +0200
committerTrueDoctor <d-kobert@web.de>2018-09-26 23:49:26 +0200
commit19bf37de7642ae8cdefd8fc6b4fadac3ac96ea9b (patch)
tree08e7a9b15d806777fa1b839e897a171823649ab1 /DiscoBot/Program.cs
parentb411aa2128c2724bec0ecedb8cb4e1ffa59f3b53 (diff)
ported most code to WebApiProject
everything except the user identification and file locations should be somewhat functional
Diffstat (limited to 'DiscoBot/Program.cs')
-rw-r--r--DiscoBot/Program.cs5
1 files changed, 2 insertions, 3 deletions
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);