summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/Help.cs
diff options
context:
space:
mode:
authorKobert-P <kassiaK@yahoo.de>2018-06-07 23:05:19 +0200
committerKobert-P <kassiaK@yahoo.de>2018-06-07 23:05:19 +0200
commitae507064b9b0dc29d72f02b1ff3d7560bd38a89f (patch)
tree6a355e0a3605ba624b8ba2a0d2f5aef42537de53 /DiscoBot/Commands/Help.cs
parent4c43b2130321948d46d6e59d15068c57b5a07778 (diff)
!help ich bin
Diffstat (limited to 'DiscoBot/Commands/Help.cs')
-rw-r--r--DiscoBot/Commands/Help.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/DiscoBot/Commands/Help.cs b/DiscoBot/Commands/Help.cs
index 96e7d46..7d35875 100644
--- a/DiscoBot/Commands/Help.cs
+++ b/DiscoBot/Commands/Help.cs
@@ -50,8 +50,13 @@ namespace DiscoBot.Commands
[Command("help"), Summary("prints the help menu.")]
[Alias("Help", "man", "Man")]
- public async Task ShowHelpAsync(string command = "")
+ public async Task ShowHelpAsync(params string[] command_list)
{
+ var command = "";
+ if (command_list.Length > 0) {
+ command = command_list.Aggregate((s, c) => s + " " + c);
+ }
+
if (command.Equals(string.Empty)) // return generic Help
{
string res = "";
@@ -62,10 +67,10 @@ namespace DiscoBot.Commands
if (com.Description.Length > 1)
{
- res += "\n\t(!man " + com.Name + " gibt genauere Informationen)";
+ res += "\n\t(\"!man " + com.Name + "\" gibt genauere Informationen)";
}
- res += "\n";
+ res += "\n\n";
}
//await this.ReplyAsync("```\n[hilfreiche Erklärungen]\nAuflistung aller Commands mit !list commands\n```");
await this.ReplyAsync("```xl\n" + res +"\n```");