diff --git a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py index 41df94b..d31dcab 100644 --- a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py @@ -17,14 +17,13 @@ def sb_test_commands(bot, trigger): @plugin.nickname_command('command_groups') def sb_test_command_groups(bot, trigger): - msgs = [] - - for category, cmds in collections.OrderedDict(sorted(bot.command_groups.items())).items(): - bot.say(category) + for plugin_name, cmds in collections.OrderedDict(sorted(bot.command_groups.items())).items(): + bot.say(plugin_name) + bot.say(str(cmds)) cmds = set(cmds) # remove duplicates + bot.say(str(cmds)) cmds = ' '.join(cmds) - msg = category + ' ' + cmds - msgs.append(msg) + bot.say(str(cmds)) # sb.osd(msgs, trigger.sender)