summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/Gm.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/Commands/Gm.cs')
-rw-r--r--DiscoBot/Commands/Gm.cs41
1 files changed, 39 insertions, 2 deletions
diff --git a/DiscoBot/Commands/Gm.cs b/DiscoBot/Commands/Gm.cs
index 2698926..25cda92 100644
--- a/DiscoBot/Commands/Gm.cs
+++ b/DiscoBot/Commands/Gm.cs
@@ -36,12 +36,49 @@
[Command("gm"), Summary("Führt eine probe aus")]
[Alias("GM", "as", "As", "als")]
- public async Task ProbeAsync([Summary("Fernkampfwaffe")] string name, string command, string waffe, int erschwernis = 0)
+ public async Task ProbeAsync([Summary("Fernkampfwaffe")] string name, string command, string waffe = "", int erschwernis = 0)
{
Permissions.Test(this.Context, "Meister");
command = command.ToLower();
- string res = this.Test(name, command, waffe, erschwernis);
+
+ string res;
+ string temp = "";
+ switch (command)
+ {
+ case "le":
+ case "leben":
+ case "lp":
+ LE le = new LE();
+ temp = "";
+
+ if (erschwernis != 0)
+ {
+ temp = erschwernis.ToString();
+ }
+
+ res = le.get_LE_Text(name, waffe.Trim() + temp);
+
+ break;
+ case "ae":
+ case "asp":
+ case "astral":
+ AE ae = new AE();
+ temp = "";
+
+ if (erschwernis != 0)
+ {
+ temp = erschwernis.ToString();
+ }
+
+ res = ae.get_AE_Text(name, waffe.Trim() + temp);
+
+ break;
+ default:
+ res = this.Test(name, command, waffe, erschwernis);
+ break;
+ }
+
if (Dsa.GeneralContext != null && Dsa.GeneralContext.Channel.Id != this.Context.Channel.Id)
{