This commit is contained in:
deathbybandaid 2022-02-12 14:21:25 -05:00
parent 785d7a605e
commit 9d88708542

View File

@ -27,7 +27,7 @@ def get_commands(bot, trigger):
if trigger.tags["intent"] == "ACTION": if trigger.tags["intent"] == "ACTION":
first_trigger_type = "action_command" first_trigger_type = "action_command"
first_trigger_prefix = "ACTION" first_trigger_prefix = "ACTION"
first_trigger = " ".join(first_trigger.split(" ")[1:]) first_trigger = first_trigger
else: else:
bot.say("what kind of rule command is this") bot.say("what kind of rule command is this")
first_trigger_type = "rule" first_trigger_type = "rule"
@ -53,7 +53,7 @@ def get_commands(bot, trigger):
elif trigger_item.startswith(tuple(["ACTION", "/me"])): elif trigger_item.startswith(tuple(["ACTION", "/me"])):
trigger_type = "action_command" trigger_type = "action_command"
trigger_prefix = "ACTION" trigger_prefix = "ACTION"
trigger_str = " ".join(trigger_item.split(" ")[1:]) trigger_str = trigger_item
else: else:
# Assume same command type until proven otherwise # Assume same command type until proven otherwise
trigger_type = first_trigger_type trigger_type = first_trigger_type