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