From 4ae835f4cc3b1ece4f15f1d02d25bca87232351e Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 12 Feb 2022 18:59:16 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_1/SBCore/commands/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index ed67d20..31508fd 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -69,15 +69,14 @@ class Commands(): return commands_list def dispatch(self, bot, trigger, trigger_dict): - bot.say(str(trigger_dict)) if trigger_dict["trigger_type"] == "command": - if trigger_dict["trigger_type"] in self.valid_sopel_commands: + if trigger_dict["trigger_command"] in self.valid_sopel_commands: return self.dispatch_command(bot, trigger, trigger_dict) elif trigger_dict["trigger_type"] == "nickname_command": - if trigger_dict["trigger_type"] in self.valid_sopel_nickname_commands: + if trigger_dict["trigger_command"] in self.valid_sopel_nickname_commands: return self.dispatch_nickname_command(bot, trigger, trigger_dict) elif trigger_dict["trigger_type"] == "action_command": - if trigger_dict["trigger_type"] in self.valid_sopel_action_commands: + if trigger_dict["trigger_command"] in self.valid_sopel_action_commands: return self.dispatch_action_command(bot, trigger, trigger_dict) def dispatch_command(self, bot, trigger, trigger_dict):