From ae507064b9b0dc29d72f02b1ff3d7560bd38a89f Mon Sep 17 00:00:00 2001 From: Kobert-P Date: Thu, 7 Jun 2018 23:05:19 +0200 Subject: !help ich bin --- DiscoBot/Commands/Help.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'DiscoBot/Commands/Help.cs') 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```"); -- cgit v1.2.3-54-g00ecf