From 85b9a8888dcb02a6a1f860ada243c973c74eae2d Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 5 May 2022 12:12:01 -0400 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 42ffd3e..2400eef 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -52,7 +52,7 @@ def prerun(): return # At this point, we update the re.match for trigger - comrun.trigger = rebuild_trigger(comrun, function) + # comrun.trigger = rebuild_trigger(comrun, function) # Run function function(bot, trigger, comrun, *args, **kwargs) @@ -65,11 +65,11 @@ def prerun(): def rebuild_trigger(comrun, function): - rule = plugins.rules.Command.from_callable(sb.config.config, function) - parse_results = list(rule.parse(comrun.command)) - match = parse_results[0] + # rule = plugins.rules.Command.from_callable(sb.config.config, function) + # parse_results = list(rule.parse(comrun.command)) + # match = parse_results[0] pretrigger = sb.commands.get_pretrigger(comrun.command) - trigger = Trigger(comrun.bot.config, pretrigger, match) + trigger = Trigger(comrun.bot.config, pretrigger, match="") return trigger