From 120372c8cf0dcc230af695f428454655f1c495ed Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 22 Feb 2022 16:27:07 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/rule_match.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/rule_match.py b/sopel_SpiceBot_Core_Prerun/rule_match.py index 5d5dad0..3d1289a 100644 --- a/sopel_SpiceBot_Core_Prerun/rule_match.py +++ b/sopel_SpiceBot_Core_Prerun/rule_match.py @@ -14,13 +14,12 @@ def rule_match(): returnfunc = True if comrun.rulematch: - comrun.trigger.dict["trigger_type"] - if comrun.trigger.dict["trigger_type"] == "command": + if comrun.trigger_dict["trigger_type"] == "command": commands_list = sb.commands.valid_sopel_commands - elif comrun.trigger.dict["trigger_type"] == "nickname_command": + elif comrun.trigger_dict["trigger_type"] == "nickname_command": commands_list = sb.commands.valid_sopel_nickname_commands - elif comrun.trigger.dict["trigger_type"] == "action_command": + elif comrun.trigger_dict["trigger_type"] == "action_command": commands_list = sb.commands.valid_sopel_action_commands if comrun.trigger_dict["trigger_command"] in commands_list: