summaryrefslogtreecommitdiff
path: root/DiscoBot/DSA_Game/Save/SaveCommand.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-06-18 11:39:41 +0200
committerTrueDoctor <d-kobert@web.de>2018-06-18 11:39:41 +0200
commit68e49d3b0936101deba1251e95b9788716c0722a (patch)
tree431d8b26148505ad8b5584fd9e7c2db644bcba15 /DiscoBot/DSA_Game/Save/SaveCommand.cs
parentba1f440d0762ab77cd3f08734043df7db5b4329e (diff)
reworked Properties, to split each fiel into a different File
Diffstat (limited to 'DiscoBot/DSA_Game/Save/SaveCommand.cs')
-rw-r--r--DiscoBot/DSA_Game/Save/SaveCommand.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/DiscoBot/DSA_Game/Save/SaveCommand.cs b/DiscoBot/DSA_Game/Save/SaveCommand.cs
new file mode 100644
index 0000000..310d38a
--- /dev/null
+++ b/DiscoBot/DSA_Game/Save/SaveCommand.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DiscoBot.DSA_Game.Save
+{
+ using System.IO;
+ using System.Net.Http;
+
+ using DiscoBot.Auxiliary;
+
+ using Discord.Commands;
+
+ public class SaveCommand : ModuleBase
+ {
+ [Command("save"), Summary("Save Session")]
+ public async Task ReportAsync()
+ {
+
+
+ await this.ReplyAsync($"Dein report wurde hinzugefügt");
+ }
+
+ [Command("save"), Summary("Save Session")]
+ public async Task ReportAsync([Remainder, Summary("Session Name")] string name)
+ {
+ if (name.Equals("?"))
+ {
+ await this.ReplyAsync($"Gespeicherte Sessions:");
+ await this.ReplyAsync(this.ListSessions());
+ }
+ }
+
+ private string[] ListSessions()
+ {
+ return Directory.GetDirectories(@"..\..\sessions");
+ }
+
+
+ }
+}