prolly wont work

This commit is contained in:
deathbybandaid 2019-05-24 08:06:09 -04:00
parent 02403a274e
commit 58b2bd14c6

View File

@ -48,14 +48,17 @@ class BotPrerun():
# Run the function for all splits # Run the function for all splits
for argsdict in argsdict_list: for argsdict in argsdict_list:
trigger.sb = copy.deepcopy(argsdict) @functools.partial(function)
trigger.sb["args"], trigger.sb["hyphen_arg"] = self.trigger_hyphen_args(trigger.sb["args"]) def internal_split(bot, trigger, *args, **kwargs):
if not trigger.sb["hyphen_arg"]: trigger.sb = copy.deepcopy(argsdict)
# check if anything prohibits the nick from running the command trigger.sb["args"], trigger.sb["hyphen_arg"] = self.trigger_hyphen_args(trigger.sb["args"])
if self.trigger_runstatus(bot, trigger): if not trigger.sb["hyphen_arg"]:
function(bot, trigger, *args, **kwargs) # check if anything prohibits the nick from running the command
else: if self.trigger_runstatus(bot, trigger):
self.trigger_hyphen_arg_handler(bot, trigger) function(bot, trigger, *args, **kwargs)
else:
self.trigger_hyphen_arg_handler(bot, trigger)
internal_split(bot, trigger, *args, **kwargs)
return internal_prerun return internal_prerun
return actual_decorator return actual_decorator