test
This commit is contained in:
parent
4dd78b6755
commit
0945181dbe
@ -5,6 +5,7 @@ class ComRun():
|
||||
|
||||
def __init__(self):
|
||||
self.continuerun = True
|
||||
self.say = ""
|
||||
|
||||
|
||||
def comrun_create():
|
||||
|
||||
@ -16,10 +16,12 @@ def dispatch_multi():
|
||||
# Get list of trigger command(s)
|
||||
commands = sb.commands.get_commands_split(trigger, "&&")
|
||||
|
||||
if len(commands) == 1:
|
||||
function(bot, trigger, comrun, *args, **kwargs)
|
||||
comrun.trigger_dict = commands[0]
|
||||
else:
|
||||
del commands[0]
|
||||
|
||||
function(bot, trigger, comrun, *args, **kwargs)
|
||||
|
||||
if len(commands):
|
||||
for trigger_dict in commands:
|
||||
sb.commands.dispatch(trigger_dict)
|
||||
comrun.continuerun = False
|
||||
|
||||
@ -25,7 +25,7 @@ def pipe_split():
|
||||
|
||||
function(bot, trigger, comrun, *args, **kwargs)
|
||||
|
||||
if len(pipes) > 1:
|
||||
if len(pipes):
|
||||
repipe_trigger_dict = reassemble_pipes(pipes, comrun.say)
|
||||
sb.commands.dispatch(repipe_trigger_dict)
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user