This commit is contained in:
deathbybandaid 2022-02-12 14:05:21 -05:00
parent 5bd30a3d0f
commit b401b6a73a
2 changed files with 9 additions and 3 deletions

View File

@ -47,5 +47,5 @@ class Commands():
bot.nick,
":%s %s %s : %s %s" % (trigger.hostmask, "PRIVMSG", trigger.sender, "/me", trigger_dict["trigger_str"])
)
pretrigger.intet = "ACTION"
pretrigger.tags["intent"] = "ACTION"
bot.dispatch(pretrigger)

View File

@ -23,9 +23,15 @@ def get_commands(bot, trigger):
first_trigger_type = "nickname_command"
first_trigger_prefix = str(first_trigger.split(" ")[0])
first_trigger = str(first_trigger.split(" ")[1:])
else:
elif "intent" in trigger.tags:
if trigger.tags["intent"] == "ACTION":
first_trigger_type = "action_command"
first_trigger_prefix = "ACTION"
else:
bot.say("what kind of rule command is this")
first_trigger_type = "rule"
first_trigger_prefix = None
first_trigger = first_trigger
commands.append({
"trigger_type": first_trigger_type,