This commit is contained in:
deathbybandaid 2022-02-12 16:16:40 -05:00
parent 369d235c51
commit b7c844cad7

View File

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