From 9d88708542d677eefb2d053b85d40508589b49d4 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 12 Feb 2022 14:21:25 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index f4b2c3c..9f77db8 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -27,7 +27,7 @@ def get_commands(bot, trigger): if trigger.tags["intent"] == "ACTION": first_trigger_type = "action_command" first_trigger_prefix = "ACTION" - first_trigger = " ".join(first_trigger.split(" ")[1:]) + first_trigger = first_trigger else: bot.say("what kind of rule command is this") first_trigger_type = "rule" @@ -53,7 +53,7 @@ def get_commands(bot, trigger): elif trigger_item.startswith(tuple(["ACTION", "/me"])): trigger_type = "action_command" trigger_prefix = "ACTION" - trigger_str = " ".join(trigger_item.split(" ")[1:]) + trigger_str = trigger_item else: # Assume same command type until proven otherwise trigger_type = first_trigger_type