diff options
author | Kobert-P <kassiaK@yahoo.de> | 2018-06-07 20:31:22 +0200 |
---|---|---|
committer | Kobert-P <kassiaK@yahoo.de> | 2018-06-07 20:31:22 +0200 |
commit | 4c43b2130321948d46d6e59d15068c57b5a07778 (patch) | |
tree | 65f2b46ccec1610624edc67fa54ab338dc29ce1a /DiscoBot/Commands | |
parent | d86b8c8702a01fadba4ce17f3e82a739d7681da9 (diff) |
Help.json now contains a brief description that is output for global !help
Diffstat (limited to 'DiscoBot/Commands')
-rw-r--r-- | DiscoBot/Commands/Help.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/DiscoBot/Commands/Help.cs b/DiscoBot/Commands/Help.cs index 2bcbd03..96e7d46 100644 --- a/DiscoBot/Commands/Help.cs +++ b/DiscoBot/Commands/Help.cs @@ -54,7 +54,21 @@ namespace DiscoBot.Commands { if (command.Equals(string.Empty)) // return generic Help { - await this.ReplyAsync("```\n[hilfreiche Erklärungen]\nAuflistung aller Commands mit !list commands\n```"); + string res = ""; + + foreach (var com in Commands) + { + res += "!" + com.Name + ": " + com.Brief; + + if (com.Description.Length > 1) + { + res += "\n\t(!man " + com.Name + " gibt genauere Informationen)"; + } + + res += "\n"; + } + //await this.ReplyAsync("```\n[hilfreiche Erklärungen]\nAuflistung aller Commands mit !list commands\n```"); + await this.ReplyAsync("```xl\n" + res +"\n```"); return; } |