summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/Help.cs
diff options
context:
space:
mode:
authorKobert-P <kassiaK@yahoo.de>2018-06-07 20:31:22 +0200
committerKobert-P <kassiaK@yahoo.de>2018-06-07 20:31:22 +0200
commit4c43b2130321948d46d6e59d15068c57b5a07778 (patch)
tree65f2b46ccec1610624edc67fa54ab338dc29ce1a /DiscoBot/Commands/Help.cs
parentd86b8c8702a01fadba4ce17f3e82a739d7681da9 (diff)
Help.json now contains a brief description that is output for global !help
Diffstat (limited to 'DiscoBot/Commands/Help.cs')
-rw-r--r--DiscoBot/Commands/Help.cs16
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;
}