diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-18 11:39:41 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-18 11:39:41 +0200 |
commit | 68e49d3b0936101deba1251e95b9788716c0722a (patch) | |
tree | 431d8b26148505ad8b5584fd9e7c2db644bcba15 /DiscoBot/Commands/Gm.cs | |
parent | ba1f440d0762ab77cd3f08734043df7db5b4329e (diff) |
reworked Properties, to split each fiel into a different File
Diffstat (limited to 'DiscoBot/Commands/Gm.cs')
-rw-r--r-- | DiscoBot/Commands/Gm.cs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/DiscoBot/Commands/Gm.cs b/DiscoBot/Commands/Gm.cs index 7fe858c..1ff0286 100644 --- a/DiscoBot/Commands/Gm.cs +++ b/DiscoBot/Commands/Gm.cs @@ -20,7 +20,7 @@ if (givenName.Length == 0 || (givenName.Length == 1 && (givenName[0].ToLower().Equals("bin") || givenName[0].ToLower().Equals("am")))) { - res = " \nDu bist " + Dsa.Relation[this.Context.User.Username] + "!\n \n"; + res = " \nDu bist " + Dsa.Session.Relation[this.Context.User.Username] + "!\n \n"; return this.ReplyAsync("```xl\n" + res + "\n```"); } @@ -41,11 +41,8 @@ } var character = Dsa.Chars.OrderBy(x => SpellCorrect.CompareEasy(name, x.Name)).First(); // usage of compareEasy - - - - Dsa.Relation[this.Context.User.Username] = character.Name; + Dsa.Session.Relation[this.Context.User.Username] = character.Name; res = " \nWillkommen " + character.Name + "!\n \n"; @@ -103,7 +100,7 @@ temp = erschwernis.ToString(); } - res = Dsa.Chars.OrderBy(x => SpellCorrect.CompareEasy(Dsa.Relation[this.Context.User.Username], x.Name)).First().get_LE_Text(waffe.Trim() + temp); + res = Dsa.Chars.OrderBy(x => SpellCorrect.CompareEasy(Dsa.Session.Relation[this.Context.User.Username], x.Name)).First().get_LE_Text(waffe.Trim() + temp); break; case "ae": @@ -117,7 +114,7 @@ temp = erschwernis.ToString(); } - res = Dsa.Chars.OrderBy(x => SpellCorrect.CompareEasy(Dsa.Relation[this.Context.User.Username], x.Name)).First().get_AE_Text(waffe.Trim() + temp); + res = Dsa.Chars.OrderBy(x => SpellCorrect.CompareEasy(Dsa.Session.Relation[this.Context.User.Username], x.Name)).First().get_AE_Text(waffe.Trim() + temp); break; default: |