test
This commit is contained in:
parent
2f577077c4
commit
1226d35ce2
@ -12,19 +12,15 @@ def prerun_command():
|
|||||||
@functools.wraps(function)
|
@functools.wraps(function)
|
||||||
def internal_prerun(bot, trigger, *args, **kwargs):
|
def internal_prerun(bot, trigger, *args, **kwargs):
|
||||||
|
|
||||||
# Get && split for multiple commands
|
|
||||||
if "&&" in trigger.args[1]:
|
|
||||||
triggers = trigger.args[1].split("&&")
|
|
||||||
else:
|
|
||||||
triggers = [trigger.args[1]]
|
|
||||||
|
|
||||||
bot.say(str(triggers))
|
|
||||||
|
|
||||||
trigger_command_type = str("command")
|
trigger_command_type = str("command")
|
||||||
|
|
||||||
# Primary command used for trigger, and a list of all words
|
# Primary command used for trigger, and a list of all words
|
||||||
trigger_args, trigger_command, trigger_prefix = make_trigger_args(trigger.args[1], trigger_command_type)
|
trigger_args, trigger_command, trigger_prefix = make_trigger_args(trigger.args[1], trigger_command_type)
|
||||||
|
|
||||||
|
bot.say(str(trigger_args))
|
||||||
|
bot.say(str(trigger_command))
|
||||||
|
bot.say(str(trigger_prefix))
|
||||||
|
|
||||||
function(bot, trigger, *args, **kwargs)
|
function(bot, trigger, *args, **kwargs)
|
||||||
|
|
||||||
return internal_prerun
|
return internal_prerun
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user