yrdy
This commit is contained in:
parent
69bbd6e4c9
commit
369d235c51
@ -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):
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user