diff options
Diffstat (limited to 'DiscoBot/Commands/Help.cs')
-rw-r--r-- | DiscoBot/Commands/Help.cs | 11 |
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```"); |