diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index d4d583c..d4d8f5e 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -1,6 +1,7 @@ from operator import itemgetter from difflib import SequenceMatcher +import collections from sopel.trigger import PreTrigger @@ -69,6 +70,9 @@ class Commands(): "type": "command", "plugin_name": plugin_name }) + for category, cmds in collections.OrderedDict(sorted(self.bot.command_groups.items())).items(): + print(category) + print(cmds) return commands_list @property