test
This commit is contained in:
parent
c2bc6273b3
commit
637c77bd55
@ -11,7 +11,7 @@ def prerun():
|
||||
@functools.wraps(function)
|
||||
def internal_prerun(bot, trigger, *args, **kwargs):
|
||||
|
||||
comrun = ComRun(function, trigger)
|
||||
comrun = ComRun(bot, trigger, function)
|
||||
|
||||
# Since there was more than one command,
|
||||
# we are going to redispatch commands
|
||||
@ -84,9 +84,10 @@ def rebuild_pipes(commands):
|
||||
|
||||
class ComRun():
|
||||
|
||||
def __init__(self, function, trigger):
|
||||
self.function = function
|
||||
def __init__(self, bot, trigger, function):
|
||||
self.bot = bot
|
||||
self.trigger = trigger
|
||||
self.function = function
|
||||
|
||||
@property
|
||||
def is_real_command(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user