This commit is contained in:
deathbybandaid 2022-02-12 16:15:24 -05:00
parent 69bbd6e4c9
commit 369d235c51
2 changed files with 10 additions and 4 deletions

View File

@ -10,7 +10,13 @@ class Commands():
@property
def sopel_commands(self):
return self.bot.rules.get_all_commands()
commands = []
for plugin_name, commands in self.bot.rules.get_all_commands():
for command in commands.values():
commands.append({
"name": command.name
})
return commands
@property
def sopel_nickname_commands(self):

View File

@ -18,9 +18,9 @@ def sb_test_commands(bot, trigger):
def sb_test_command_groups(bot, trigger):
plugin_commands = itertools.chain(
bot._rules_manager.get_all_commands(),
bot._rules_manager.get_all_action_commands(),
bot._rules_manager.get_all_nick_commands(),
bot.rules.get_all_commands(),
bot.rules.get_all_action_commands(),
bot.rules.get_all_nick_commands(),
)
for plugin_name, commands in plugin_commands: