From 637c77bd55675c3742da2434f733e2beb2b1a70d Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 24 Feb 2022 11:52:36 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 16775a2..1d3d428 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -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):