diff options
Diffstat (limited to 'DiscoBot/Commands/FileHandler.cs')
-rw-r--r-- | DiscoBot/Commands/FileHandler.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/DiscoBot/Commands/FileHandler.cs b/DiscoBot/Commands/FileHandler.cs deleted file mode 100644 index 17928c8..0000000 --- a/DiscoBot/Commands/FileHandler.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Linq; -using System.Threading.Tasks; -using Discord.Commands; - -namespace DiscoBot.Commands -{ - public class FileHandler : ModuleBase - { - //[Command("send"), Summary("fügt Helden hinzu")] - public async Task AddChar() - { - var msg = Context.Message; - if (msg.Attachments == null) throw new ArgumentException("Es wurde keine Datei angehängt"); - - var attachments = msg.Attachments.ToList(); - - if (!attachments.Any(x => x.Filename.EndsWith(".xml"))) - throw new ArgumentException("Es wurde kein xml Held mitgeschickt"); - - foreach (var attachment in attachments.Where(x => x.Filename.EndsWith(".xml"))) - throw new NotImplementedException("send File to Server"); - } - } -}
\ No newline at end of file |