mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test
This commit is contained in:
parent
45bd2df646
commit
36cfb11d61
@ -65,10 +65,14 @@ class BotPrerun():
|
||||
|
||||
# Run the function for all splits
|
||||
for argsdict in argsdict_list:
|
||||
# check if anything prohibits the nick from running the command
|
||||
if self.trigger_runstatus(bot, trigger, argsdict_list[0]):
|
||||
trigger.sb = argsdict
|
||||
function(bot, trigger, *args, **kwargs)
|
||||
trigger.sb = argsdict
|
||||
trigger.sb["args"], trigger.sb["hyphen_arg"] = self.trigger_hyphen_args(trigger.sb)
|
||||
if trigger.sb["hyphen_arg"]:
|
||||
return self.trigger_hyphen_arg_handler(bot, trigger, trigger.sb)
|
||||
else:
|
||||
# check if anything prohibits the nick from running the command
|
||||
if self.trigger_runstatus(bot, trigger, argsdict_list[0]):
|
||||
function(bot, trigger, *args, **kwargs)
|
||||
return
|
||||
return internal_prerun
|
||||
return actual_decorator
|
||||
|
||||
Loading…
Reference in New Issue
Block a user