This commit is contained in:
deathbybandaid 2022-02-24 11:52:36 -05:00
parent c2bc6273b3
commit 637c77bd55

View File

@ -11,7 +11,7 @@ def prerun():
@functools.wraps(function) @functools.wraps(function)
def internal_prerun(bot, trigger, *args, **kwargs): def internal_prerun(bot, trigger, *args, **kwargs):
comrun = ComRun(function, trigger) comrun = ComRun(bot, trigger, function)
# Since there was more than one command, # Since there was more than one command,
# we are going to redispatch commands # we are going to redispatch commands
@ -84,9 +84,10 @@ def rebuild_pipes(commands):
class ComRun(): class ComRun():
def __init__(self, function, trigger): def __init__(self, bot, trigger, function):
self.function = function self.bot = bot
self.trigger = trigger self.trigger = trigger
self.function = function
@property @property
def is_real_command(self): def is_real_command(self):