From 34ccf2eac0542619a64035e3f0cc20784bce44c7 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 23 Feb 2022 15:02:36 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/clean_trigger.py | 23 --------------------- sopel_SpiceBot_Core_Prerun/pipe_split.py | 2 -- 2 files changed, 25 deletions(-) delete mode 100644 sopel_SpiceBot_Core_Prerun/clean_trigger.py diff --git a/sopel_SpiceBot_Core_Prerun/clean_trigger.py b/sopel_SpiceBot_Core_Prerun/clean_trigger.py deleted file mode 100644 index 179026f..0000000 --- a/sopel_SpiceBot_Core_Prerun/clean_trigger.py +++ /dev/null @@ -1,23 +0,0 @@ - - -from sopel_SpiceBot_Core_1 import sb - - -def clean_trigger(bot, trigger, trigger_dict): - redispatch = False - - print(trigger.group(0)) - print(trigger.group(1)) - print(trigger.args) - - if trigger_dict["trigger_type"] == "command": - pretrigger = sb.commands.generate_pretrigger_command(trigger_dict) - elif trigger_dict["trigger_type"] == "nickname_command": - pretrigger = sb.commands.generate_pretrigger_nickname_command(trigger_dict) - elif trigger_dict["trigger_type"] == "action_command": - pretrigger = sb.commands.generate_pretrigger_action_command(trigger_dict) - - matches = bot.rules.get_triggered_rules(bot, pretrigger) - print(matches) - - return trigger, redispatch diff --git a/sopel_SpiceBot_Core_Prerun/pipe_split.py b/sopel_SpiceBot_Core_Prerun/pipe_split.py index 82f6d4a..1e9d82e 100644 --- a/sopel_SpiceBot_Core_Prerun/pipe_split.py +++ b/sopel_SpiceBot_Core_Prerun/pipe_split.py @@ -1,12 +1,10 @@ def rebuild_pipes(commands): - print(commands) repipe_trigger_dict = commands[0] for trigger_dict in commands[1:]: - print(trigger_dict) if trigger_dict["trigger_type"] == "command": repipe_trigger_dict["trigger_str"] += " | %s%s %s" % (trigger_dict["trigger_prefix"], trigger_dict["trigger_command"], trigger_dict["trigger_str"]) elif trigger_dict["trigger_type"] == "nickname_command":