This commit is contained in:
deathbybandaid 2022-02-12 14:10:58 -05:00
parent 1fee25883a
commit 0862cb4b5a

View File

@ -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