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_commands(),
bot._rules_manager.get_all_nick_commands(), bot._rules_manager.get_all_nick_commands(),
) )
result = {}
for plugin_name, commands in plugin_commands: commands = (
if plugin_name not in result: (command, command.get_doc(), command.get_usages())
result[plugin_name] = list(sorted(commands.keys())) for plugin_name, commands in plugin_commands
else: for command in commands.values()
result[plugin_name].extend(commands.keys()) )
result[plugin_name] = list(sorted(result[plugin_name]))
bot.say(str(result)) bot.say(str(commands))
# sb.osd(msgs, trigger.sender) # sb.osd(msgs, trigger.sender)