From 0beb62eafd76cb47b0e6a41858ec25015d8a3059 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 22 Feb 2022 14:02:21 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_1/SBCore/commands/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index 955b2a4..6e89b74 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -134,9 +134,8 @@ class Commands(): else: first_trigger_type = "rule" first_trigger_prefix = None - first_trigger = first_full_trigger_str - first_trigger_command = first_trigger_noprefix.split(" ")[0] - first_trigger_str = " ".join(first_trigger_noprefix.split(" ")[1:]) + first_trigger_command = first_full_trigger_str.split(" ")[0] + first_trigger_str = " ".join(first_full_trigger_str.split(" ")[1:]) commands.append({ "trigger_type": first_trigger_type, @@ -149,9 +148,6 @@ class Commands(): for full_trigger_str in triggers: - trigger_command = first_trigger.split(" ")[0] - trigger_str = " ".join(first_trigger.split(" ")[1:]) - if full_trigger_str.startswith(tuple(self.config.prefix_list)): trigger_type = "command" trigger_prefix = full_trigger_str[0]