test
This commit is contained in:
parent
2ae11c454b
commit
671d07adff
@ -19,9 +19,9 @@ def prerun(rulematch=False):
|
|||||||
# Since there was more than one command,
|
# Since there was more than one command,
|
||||||
# we are going to redispatch commands
|
# we are going to redispatch commands
|
||||||
# This will give sopel the appearance of recieving individual commands
|
# This will give sopel the appearance of recieving individual commands
|
||||||
bot.say(str(commands))
|
|
||||||
if len(commands) > 1:
|
if len(commands) > 1:
|
||||||
for trigger_dict in commands:
|
for trigger_dict in commands:
|
||||||
|
bot.say("multi - dispatching %s %s" % (trigger_dict["trigger_command"], trigger_dict["trigger_str"]))
|
||||||
sb.commands.dispatch(trigger_dict)
|
sb.commands.dispatch(trigger_dict)
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -29,6 +29,7 @@ def prerun(rulematch=False):
|
|||||||
# so we will now redispatch to help get the correct function passed
|
# so we will now redispatch to help get the correct function passed
|
||||||
trigger_command = sb.commands.get_command_from_trigger(trigger)
|
trigger_command = sb.commands.get_command_from_trigger(trigger)
|
||||||
if trigger_command != commands[0]["trigger_command"]:
|
if trigger_command != commands[0]["trigger_command"]:
|
||||||
|
bot.say("command changes - dispatching %s %s" % (trigger_dict["trigger_command"], trigger_dict["trigger_str"]))
|
||||||
sb.commands.dispatch(commands[0])
|
sb.commands.dispatch(commands[0])
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user