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