This commit is contained in:
deathbybandaid 2022-02-12 15:32:50 -05:00
parent 736299974c
commit f0878dd3c6

View File

@ -21,16 +21,14 @@ def sb_test_command_groups(bot, trigger):
bot._rules_manager.get_all_commands(),
bot._rules_manager.get_all_nick_commands(),
)
result = {}
for plugin_name, commands in plugin_commands:
if plugin_name not in result:
result[plugin_name] = list(sorted(commands.keys()))
else:
result[plugin_name].extend(commands.keys())
result[plugin_name] = list(sorted(result[plugin_name]))
commands = (
(command, command.get_doc(), command.get_usages())
for plugin_name, commands in plugin_commands
for command in commands.values()
)
bot.say(str(result))
bot.say(str(commands))
# sb.osd(msgs, trigger.sender)