From 95f2bbc14d14e1ad0e6ae1c1e09d7827d26d84d3 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 12 Feb 2022 15:24:13 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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)