summaryrefslogtreecommitdiff
path: root/DiscoBot/DSA.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-04-08 20:23:57 +0200
committerTrueDoctor <d-kobert@web.de>2018-04-08 20:23:57 +0200
commit23d2ede6124b0a7b10a74058a396477d52941337 (patch)
treed711ba83f6c17dc0065cb6c7b065ad27ef5b237f /DiscoBot/DSA.cs
parent27a7038458f7ae0bcb9f2b4065940308b89fc172 (diff)
Did a lot of awsome stuff
Diffstat (limited to 'DiscoBot/DSA.cs')
-rw-r--r--DiscoBot/DSA.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/DiscoBot/DSA.cs b/DiscoBot/DSA.cs
new file mode 100644
index 0000000..60b25ce
--- /dev/null
+++ b/DiscoBot/DSA.cs
@@ -0,0 +1,38 @@
+namespace DiscoBot
+{
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Linq;
+
+ using Discord.Commands;
+
+ public static class DSA
+ {
+ public static ICommandContext GeneralContext { get; set; }
+ public static Dictionary<string, string> relation = new Dictionary<string, string>(); //dictionary to match the char
+ public static List<ICharacter> chars = new List<ICharacter>(); //list of all charackters
+
+ public static List<Talent> Talente { get; set; } = new List<Talent>();
+
+ public static void Startup()
+ {
+ relation.Add("The Doctor", "Numeri Illuminus");//Relation
+ relation.Add("Tardis", "Morla");//"Numeri Illuminus");
+ relation.Add("DSA Bot", "Morla");//"Felis Exodus Schattenwald");
+ relation.Add("Morla", "Morla");
+ relation.Add("Rhoktar", "Rhoktar4");
+ //relation.Add("Papo","Gwendelson");
+ relation.Add("Papo", "Pump aus der Gosse");
+ relation.Add("Potus", "Potus");
+ //relation.Add("Papo", "Pump aus der Gosse");
+ foreach (var filename in Directory.GetFiles("helden", "*.xml"))
+ {
+ chars.Add(new Character(filename));
+ (chars.Last() as Character)?.Talente.Select(x => new Talent(x.name, x.probe, 0))
+ .Where(c => !Talente.Exists(v => v.name.Equals(c.name))).ToList().ForEach(v => Talente.Add(v));
+ }
+
+ Talente = Talente.OrderBy(x => x.name).ToList();
+ }
+ }
+} \ No newline at end of file