From 3710517186edc672e33fb20912b36560addfcef8 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 6 May 2022 09:34:49 -0400 Subject: [PATCH] test --- sopel_SpiceBot_Core_1/SBCore/commands/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index b8fa678..77b2546 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -38,12 +38,8 @@ class Commands(): def valid_sopel_commands(self): found = [] for command_dict in self.sopel_commands: - print(command_dict) found.append(command_dict["name"]) found.extend(command_dict["aliases"]) - for plugin_name, commands in self.bot.rules.get_all_commands(): - print(plugin_name) - print(commands) return found @property @@ -70,7 +66,8 @@ class Commands(): commands_list.append({ "name": command.name, "aliases": command.aliases, - "type": "command" + "type": "command", + "plugin_name": plugin_name }) return commands_list @@ -82,7 +79,8 @@ class Commands(): commands_list.append({ "name": command.name, "aliases": command.aliases, - "type": "nickname_command" + "type": "nickname_command", + "plugin_name": plugin_name }) return commands_list @@ -94,8 +92,10 @@ class Commands(): commands_list.append({ "name": command.name, "aliases": command.aliases, - "type": "action_command" + "type": "action_command", + "plugin_name": plugin_name }) + print(commands_list) return commands_list def dispatch(self, trigger_dict):