diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index d763724..cae9d3d 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -3,6 +3,11 @@ import functools from sopel_SpiceBot_Core_1 import sb +class ComRun(): + def __init__(self): + pass + + def dispatch(): """ This splits the given command by `&&` and re-dispatches it internally to the bot. @@ -57,10 +62,12 @@ def prerun(): def internal_prerun(bot, trigger, *args, **kwargs): bot.say("prerun") - comrun = "test comrun" + comrun = ComRun() function(bot, trigger, comrun, *args, **kwargs) + print(comrun.test) + return internal_prerun return actual_decorator diff --git a/sopel_SpiceBot_Runtime_Commands/__init__.py b/sopel_SpiceBot_Runtime_Commands/__init__.py index 773c918..be04657 100644 --- a/sopel_SpiceBot_Runtime_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Commands/__init__.py @@ -11,7 +11,7 @@ from sopel_SpiceBot_Core_Prerun import prerun @plugin.command('test', "testnew") def commands_test(bot, trigger, comrun): bot.say("%s" % trigger.raw) - bot.say(comrun) + comrun.test = "this is a real test" @prerun()