From 01fdf8ee664952007f593a09c19b106f014531ab Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Mon, 14 Mar 2022 11:37:16 +0000 Subject: [PATCH] List command names alphabetically --- BrackeysBot/Plugins/SimplePluginManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BrackeysBot/Plugins/SimplePluginManager.cs b/BrackeysBot/Plugins/SimplePluginManager.cs index 6255bd9..29801d1 100644 --- a/BrackeysBot/Plugins/SimplePluginManager.cs +++ b/BrackeysBot/Plugins/SimplePluginManager.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -292,7 +292,7 @@ public IPlugin LoadPlugin(string name) commandsNext.UnregisterConverter(); commandsNext.RegisterConverter(new TimeSpanArgumentConverter()); - string[] commandNames = commandsNext.RegisteredCommands.Keys.ToArray(); + string[] commandNames = commandsNext.RegisteredCommands.Keys.OrderBy(c => c).ToArray(); Logger.Info(string.Format(LoggerMessages.PluginRegisteredCommands, pluginInfo.Name, commandNames.Length, string.Join(", ", commandNames)));