Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
List command names alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Mar 14, 2022
1 parent f18f908 commit 01fdf8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BrackeysBot/Plugins/SimplePluginManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -292,7 +292,7 @@ public IPlugin LoadPlugin(string name)
commandsNext.UnregisterConverter<TimeSpanConverter>();
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)));

Expand Down

0 comments on commit 01fdf8e

Please sign in to comment.