This commit is contained in:
deathbybandaid 2022-02-12 12:00:56 -05:00
parent 2f577077c4
commit 1226d35ce2

View File

@ -12,19 +12,15 @@ def prerun_command():
@functools.wraps(function)
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")
# 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)
bot.say(str(trigger_args))
bot.say(str(trigger_command))
bot.say(str(trigger_prefix))
function(bot, trigger, *args, **kwargs)
return internal_prerun