summaryrefslogtreecommitdiff
path: root/DiscoBot
diff options
context:
space:
mode:
authorKobert-P <kassiaK@yahoo.de>2018-06-06 22:36:41 +0200
committerKobert-P <kassiaK@yahoo.de>2018-06-06 22:36:41 +0200
commit6f03675fcec1cc73bb684cb71e8fd1bef24efbc5 (patch)
treea0f9eda3b2bb6ba55a2d9c93493ee62365f869ce /DiscoBot
parent8396bb48937889a708da7ecb35b788fcef4f2eca (diff)
Man.cs
Diffstat (limited to 'DiscoBot')
-rw-r--r--DiscoBot/Commands/LebenUndAstral.cs44
-rw-r--r--DiscoBot/Commands/Man.cs42
-rw-r--r--DiscoBot/DiscoBot.csproj1
3 files changed, 70 insertions, 17 deletions
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 @@
<ItemGroup>
<Compile Include="Audio\AudioModule.cs" />
<Compile Include="Audio\AudioService.cs" />
+ <Compile Include="Commands\Man.cs" />
<Compile Include="Auxiliary\Dice.cs" />
<Compile Include="Auxiliary\TalentEnumerableExtension.cs" />
<Compile Include="Commands\LebenUndAstral.cs" />