test
This commit is contained in:
parent
5bd30a3d0f
commit
b401b6a73a
@ -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)
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user