test
This commit is contained in:
parent
b1bc6a6dbf
commit
2ae11c454b
@ -19,6 +19,7 @@ def prerun(rulematch=False):
|
||||
# Since there was more than one command,
|
||||
# we are going to redispatch commands
|
||||
# This will give sopel the appearance of recieving individual commands
|
||||
bot.say(str(commands))
|
||||
if len(commands) > 1:
|
||||
for trigger_dict in commands:
|
||||
sb.commands.dispatch(trigger_dict)
|
||||
@ -29,8 +30,6 @@ def prerun(rulematch=False):
|
||||
trigger_command = sb.commands.get_command_from_trigger(trigger)
|
||||
if trigger_command != commands[0]["trigger_command"]:
|
||||
sb.commands.dispatch(commands[0])
|
||||
print(commands[0]["trigger_command"])
|
||||
print(trigger_command)
|
||||
return
|
||||
|
||||
# Get list of trigger command(s) by | split
|
||||
@ -39,8 +38,6 @@ def prerun(rulematch=False):
|
||||
# Validate | split
|
||||
trigger_command = sb.commands.get_command_from_trigger(trigger)
|
||||
if trigger_command != commands[0]["trigger_command"]:
|
||||
print(commands[0]["trigger_command"])
|
||||
print(trigger_command)
|
||||
trigger_dict = rebuild_pipes(commands)
|
||||
sb.commands.dispatch(trigger_dict)
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user