From 19fd05a2990ec309a3869d61a6bcf48aba4793dd Mon Sep 17 00:00:00 2001 From: Kobert-P Date: Sun, 10 Jun 2018 01:17:57 +0200 Subject: AddSpaces extension --- DiscoBot/Commands/Help.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'DiscoBot/Commands/Help.cs') diff --git a/DiscoBot/Commands/Help.cs b/DiscoBot/Commands/Help.cs index 7d35875..c6de4a9 100644 --- a/DiscoBot/Commands/Help.cs +++ b/DiscoBot/Commands/Help.cs @@ -63,11 +63,12 @@ namespace DiscoBot.Commands foreach (var com in Commands) { - res += "!" + com.Name + ": " + com.Brief; + int first_column_width = 8; + res += ("!" + com.Name + ": ").AddSpaces(first_column_width) + com.Brief; if (com.Description.Length > 1) { - res += "\n\t(\"!man " + com.Name + "\" gibt genauere Informationen)"; + res += "\n" + "".AddSpaces(first_column_width) + "(\"!man " + com.Name + "\" gibt genauere Informationen)"; } res += "\n\n"; -- cgit v1.2.3-70-g09d2