From 1226d35ce2c63409ee13f91256d7de1f7243be97 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 12 Feb 2022 12:00:56 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 9506643..9b8b7aa 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -12,19 +12,15 @@ def prerun_command(): @functools.wraps(function) def internal_prerun(bot, trigger, *args, **kwargs): - # Get && split for multiple commands - if "&&" in trigger.args[1]: - triggers = trigger.args[1].split("&&") - else: - triggers = [trigger.args[1]] - - bot.say(str(triggers)) - trigger_command_type = str("command") # Primary command used for trigger, and a list of all words trigger_args, trigger_command, trigger_prefix = make_trigger_args(trigger.args[1], trigger_command_type) + bot.say(str(trigger_args)) + bot.say(str(trigger_command)) + bot.say(str(trigger_prefix)) + function(bot, trigger, *args, **kwargs) return internal_prerun