From 6f03675fcec1cc73bb684cb71e8fd1bef24efbc5 Mon Sep 17 00:00:00 2001 From: Kobert-P Date: Wed, 6 Jun 2018 22:36:41 +0200 Subject: Man.cs --- DiscoBot/Commands/LebenUndAstral.cs | 44 +++++++++++++++++++++++-------------- DiscoBot/Commands/Man.cs | 42 +++++++++++++++++++++++++++++++++++ DiscoBot/DiscoBot.csproj | 1 + 3 files changed, 70 insertions(+), 17 deletions(-) create mode 100644 DiscoBot/Commands/Man.cs (limited to 'DiscoBot') diff --git a/DiscoBot/Commands/LebenUndAstral.cs b/DiscoBot/Commands/LebenUndAstral.cs index 548dc58..4ead7e9 100644 --- a/DiscoBot/Commands/LebenUndAstral.cs +++ b/DiscoBot/Commands/LebenUndAstral.cs @@ -12,7 +12,7 @@ public class LE : ModuleBase { - + [Command("LE"), Summary("Ändert aktuellen Lebenspunktestand")] [Alias("le", "leben", "LP", "lp", "Le", "Lp")] @@ -24,16 +24,21 @@ if(prop.ToLower().Equals("help") || prop.ToLower().Equals("man")) { - res += "Use !LE to display, set, or change LE value\n\n"; - res += " !LE Display values\n"; - res += " !LE 30 Set LE to 30\n"; - res += " !LE +5 Increment LE by 5 (up to the maximum)\n"; - res += " !LE ++5 Increment LE by 5 (ignoring the maximum)\n"; - res += " !LE -5 Decrease LE by 5\n"; - - await this.ReplyAsync("```xl\n" + res + "\n```"); + Man man = new Man(); + await this.ReplyAsync("```xl\n" + man.Man_LE() + "\n```"); return; + + //res += "Use !LE to display, set, or change LE value\n\n"; + //res += " !LE Display values\n"; + //res += " !LE 30 Set LE to 30\n"; + //res += " !LE +5 Increment LE by 5 (up to the maximum)\n"; + //res += " !LE ++5 Increment LE by 5 (ignoring the maximum)\n"; + //res += " !LE -5 Decrease LE by 5\n"; + + //await this.ReplyAsync("```xl\n" + res + "\n```"); + + //return; } //Incase the input is badly formated @@ -117,16 +122,21 @@ public class AE : ModuleBase if (prop.ToLower().Equals("help") || prop.ToLower().Equals("man")) { - res += "Use !AE to display, set, or change AE/Asp value\n\n"; - res += " !AE Display values\n"; - res += " !AE 30 Set Asp to 30\n"; - res += " !AE +5 Increment Asp by 5 (up to the maximum)\n"; - res += " !AE ++5 Increment Asp by 5 (ignoring the maximum)\n"; - res += " !AE -5 Decrease Asp by 5 (down to 0)\n"; - await this.ReplyAsync("```xl\n" + res + "\n```"); + Man man = new Man(); + await this.ReplyAsync("```xl\n" + man.Man_AE() + "\n```"); + return; + + // res += "Use !AE to display, set, or change AE/Asp value\n\n"; + //res += " !AE Display values\n"; + //res += " !AE 30 Set Asp to 30\n"; + //res += " !AE +5 Increment Asp by 5 (up to the maximum)\n"; + //res += " !AE ++5 Increment Asp by 5 (ignoring the maximum)\n"; + //res += " !AE -5 Decrease Asp by 5 (down to 0)\n"; + + //await this.ReplyAsync("```xl\n" + res + "\n```"); - return; + //return; } //Incase the input is badly formated diff --git a/DiscoBot/Commands/Man.cs b/DiscoBot/Commands/Man.cs new file mode 100644 index 0000000..53838de --- /dev/null +++ b/DiscoBot/Commands/Man.cs @@ -0,0 +1,42 @@ +namespace DiscoBot.Commands +{ + using Discord.Commands; + + public class Man : ModuleBase + //public class Man : ModuleBase + { + + //Help for !LE command + public string Man_LE() + //public async Task Man_AE() + { + string res = ""; + res += "Use !LE to display, set, or change LE value\n\n"; + res += " !LE Display values\n"; + res += " !LE 30 Set LE to 30\n"; + res += " !LE +5 Increment LE by 5 (up to the maximum)\n"; + res += " !LE ++5 Increment LE by 5 (ignoring the maximum)\n"; + res += " !LE -5 Decrease LE by 5\n"; + res += " \n"; + + return res; + //await this.ReplyAsync("```xl\n" + res + "\n```"); + } + + //Help for !AE command + public string Man_AE() + { + string res = ""; + res += "Use !AE (or !Asp) to display, set, or change AE/Asp value\n\n"; + res += " !AE Display values\n"; + res += " !AE 30 Set Asp to 30\n"; + res += " !AE +5 Increment Asp by 5 (up to the maximum)\n"; + res += " !AE ++5 Increment Asp by 5 (ignoring the maximum)\n"; + res += " !AE -5 Decrease Asp by 5 (down to 0)\n"; + res += " \n"; + + return res; + } + +} +} diff --git a/DiscoBot/DiscoBot.csproj b/DiscoBot/DiscoBot.csproj index 411e4fb..6fec671 100644 --- a/DiscoBot/DiscoBot.csproj +++ b/DiscoBot/DiscoBot.csproj @@ -149,6 +149,7 @@ + -- cgit v1.2.3-54-g00ecf