test
This commit is contained in:
parent
1fee25883a
commit
0862cb4b5a
@ -27,6 +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 = str(first_trigger.split(" ")[1:])
|
||||||
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"
|
||||||
@ -52,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 = trigger_item
|
trigger_str = str(trigger_item.split(" ")[1:])
|
||||||
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user