Compare commits
2 Commits
a015850451
...
601d146cd5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
601d146cd5 | ||
|
|
fb1101a969 |
@ -128,14 +128,14 @@ def dispatch():
|
||||
return actual_decorator
|
||||
|
||||
|
||||
def testfun():
|
||||
def command_args():
|
||||
|
||||
def actual_decorator(function):
|
||||
|
||||
@functools.wraps(function)
|
||||
def internal_testfun(bot, trigger, *args, **kwargs):
|
||||
|
||||
bot.say("testfun")
|
||||
bot.say("command_args")
|
||||
|
||||
function(bot, trigger, *args, **kwargs)
|
||||
|
||||
@ -147,8 +147,8 @@ def prerun():
|
||||
|
||||
def actual_decorator(function):
|
||||
|
||||
@testfun()
|
||||
@dispatch()
|
||||
@command_args()
|
||||
@functools.wraps(function)
|
||||
def internal_prerun(bot, trigger, *args, **kwargs):
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user