From 3ed588c756a3c7b3a5d861d813bef9751139c289 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 24 May 2019 10:25:26 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/Prerun.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sopel_modules/SpiceBot/Prerun.py b/sopel_modules/SpiceBot/Prerun.py index 7255d44..b14d98b 100644 --- a/sopel_modules/SpiceBot/Prerun.py +++ b/sopel_modules/SpiceBot/Prerun.py @@ -20,6 +20,15 @@ class BotPrerun(): def __init__(self): self.dict = {} + def hyphenargs(self, trigger_command_type='module'): + def actual_decorator(function): + @functools.wraps(function) + def internal_prerun(bot, trigger, *args, **kwargs): + bot.say("here") + return function(bot, trigger, *args, **kwargs) + return internal_prerun + return actual_decorator + def prerun(self, trigger_command_type='module'): def actual_decorator(function):