test
This commit is contained in:
parent
9c8999564b
commit
d6ce371848
@ -104,7 +104,7 @@ def get_commands(bot, trigger):
|
|||||||
return commands
|
return commands
|
||||||
|
|
||||||
|
|
||||||
def prerun():
|
def dispatch():
|
||||||
|
|
||||||
def actual_decorator(function):
|
def actual_decorator(function):
|
||||||
|
|
||||||
@ -124,3 +124,17 @@ def prerun():
|
|||||||
|
|
||||||
return internal_prerun
|
return internal_prerun
|
||||||
return actual_decorator
|
return actual_decorator
|
||||||
|
|
||||||
|
|
||||||
|
@dispatch()
|
||||||
|
def prerun():
|
||||||
|
|
||||||
|
def actual_decorator(function):
|
||||||
|
|
||||||
|
@functools.wraps(function)
|
||||||
|
def internal_prerun(bot, trigger, *args, **kwargs):
|
||||||
|
|
||||||
|
function(bot, trigger, *args, **kwargs)
|
||||||
|
|
||||||
|
return internal_prerun
|
||||||
|
return actual_decorator
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user