From 1d8aa689841a72fd709e6b1f11da067c007aefd9 Mon Sep 17 00:00:00 2001 From: Tikuf Date: Sat, 25 Apr 2020 22:51:13 -0600 Subject: [PATCH] More detailed help --- Core/Commands/Self/Help.cs | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/Core/Commands/Self/Help.cs b/Core/Commands/Self/Help.cs index 7badadc..1ab4424 100644 --- a/Core/Commands/Self/Help.cs +++ b/Core/Commands/Self/Help.cs @@ -17,13 +17,14 @@ namespace BSB.Commands.Self { StringBuilder sb = new StringBuilder(); + sb.Append("Second Bot - Basic Command List\n\n"); sb.Append(bot.GetCommandsInterface.GetCommandHelp("im")); sb.Append("\n\n"); sb.Append(bot.GetCommandsInterface.GetCommandHelp("say")); sb.Append("\n\n"); sb.Append(bot.GetCommandsInterface.GetCommandHelp("botsit")); sb.Append("\n\n"); - sb.Append("\nType: 'morehelp' for a full list of commands"); + sb.Append("\nType: 'morehelp' for a full list of commands\n"); sb.Replace("
", "\n"); bot.sendIM(bot.getMaster_uuid, sb.ToString()); @@ -43,27 +44,19 @@ namespace BSB.Commands.Self { if (bot.getMaster_uuid != UUID.Zero) { - string reply = ""; - int counter = 0; - string addon = ""; + + + StringBuilder reply = new StringBuilder(); + reply.Append("Second Bot - Full Command List\n\n"); foreach (string a in bot.GetCommandsInterface.GetCommandsList()) { - reply += addon; - reply += a; - counter++; - if (counter == 5) - { - reply += "\n"; - addon = ""; - counter = 0; - } - else - { - addon = " , "; - } + reply.Append(a); + reply.Append("\n"); + reply.Append(bot.GetCommandsInterface.GetCommandHelp(a)); + reply.Append("\n\n"); } - bot.sendIM(bot.getMaster_uuid, reply); + bot.sendIM(bot.getMaster_uuid, reply.ToString()); return true; }