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