private static void ShowHelp(List <string> args, ICRCSendable output) { foreach (CRCCommand command in commands) { if (command.Name == args[0]) { output.AddInformation(command.Help); return; } } output.AddError("Command \"" + args[0] + "\" not recognized. Use /commands to see all available commands."); }
private static void ShowCommands(List <string> args, ICRCSendable output) { output.AddInformation("Available commands: " + string.Join(", ", commands)); }