summaryrefslogtreecommitdiff
path: root/DiscoBot
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
parentb411aa2128c2724bec0ecedb8cb4e1ffa59f3b53 (diff)
ported most code to WebApiProject
everything except the user identification and file locations should be somewhat functional
Diffstat (limited to 'DiscoBot')
-rw-r--r--DiscoBot/DiscoBot.csproj4
-rw-r--r--DiscoBot/Program.cs5
-rw-r--r--DiscoBot/ToRework/CommandExtension.cs (renamed from DiscoBot/Auxiliary/CommandExtension.cs)0
-rw-r--r--DiscoBot/ToRework/Permissions.cs (renamed from DiscoBot/Auxiliary/Permissions.cs)0
4 files changed, 4 insertions, 5 deletions
diff --git a/DiscoBot/DiscoBot.csproj b/DiscoBot/DiscoBot.csproj
index 30f4755..d25a5e9 100644
--- a/DiscoBot/DiscoBot.csproj
+++ b/DiscoBot/DiscoBot.csproj
@@ -113,13 +113,13 @@
<Compile Include="Commands\LebenUndAstral.cs" />
<Compile Include="Commands\HeldList.cs" />
<Compile Include="Audio\Soundeffects.cs" />
- <Compile Include="Auxiliary\Permissions.cs" />
+ <Compile Include="ToRework\Permissions.cs" />
<Compile Include="Commands\MiscCommands.cs" />
<Compile Include="Auxiliary\SpellCorrect.cs" />
<Compile Include="DSA_Game\Save\Properties.cs" />
<Compile Include="DSA_Game\Save\SaveCommand.cs" />
<Compile Include="DSA_Game\Save\Session.cs" />
- <Compile Include="Auxiliary\CommandExtension.cs" />
+ <Compile Include="ToRework\CommandExtension.cs" />
<Compile Include="Commands\CommandTypes.cs" />
<Compile Include="Commands\FileHandler.cs" />
<Compile Include="Commands\Gm.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);
diff --git a/DiscoBot/Auxiliary/CommandExtension.cs b/DiscoBot/ToRework/CommandExtension.cs
index 098e35f..098e35f 100644
--- a/DiscoBot/Auxiliary/CommandExtension.cs
+++ b/DiscoBot/ToRework/CommandExtension.cs
diff --git a/DiscoBot/Auxiliary/Permissions.cs b/DiscoBot/ToRework/Permissions.cs
index 4d73146..4d73146 100644
--- a/DiscoBot/Auxiliary/Permissions.cs
+++ b/DiscoBot/ToRework/Permissions.cs