test
This commit is contained in:
parent
37f847b12b
commit
22bf9c33ed
@ -79,11 +79,12 @@ def prerun():
|
|||||||
commands = get_commands(bot, trigger)
|
commands = get_commands(bot, trigger)
|
||||||
bot.say(str(commands))
|
bot.say(str(commands))
|
||||||
|
|
||||||
# function(bot, trigger, *args, **kwargs)
|
if len(commands) > 1:
|
||||||
|
for trigger_dict in commands:
|
||||||
|
sb.commands.dispatch(bot, trigger, trigger_dict)
|
||||||
|
return
|
||||||
|
|
||||||
for trigger_dict in commands:
|
function(bot, trigger, *args, **kwargs)
|
||||||
|
|
||||||
sb.commands.dispatch(bot, trigger, trigger_dict)
|
|
||||||
|
|
||||||
return internal_prerun
|
return internal_prerun
|
||||||
return actual_decorator
|
return actual_decorator
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user