From b37e02522099b98f8231084c70cd8c8a7b2c26b6 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 12 Feb 2022 15:06:12 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 8 ++++---- sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 6e79723..45ba4b8 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -55,7 +55,7 @@ def get_commands(bot, trigger): trigger_prefix = "ACTION" trigger_str = " ".join(trigger_item.split(" ")[1:]) else: - # Assume same command type until proven otherwise + # TODO Assume same command type until proven otherwise trigger_type = first_trigger_type trigger_prefix = first_trigger_prefix trigger_str = trigger_item @@ -75,11 +75,11 @@ def prerun(): @functools.wraps(function) def internal_prerun(bot, trigger, *args, **kwargs): - bot.say(trigger.raw) - # Get list of command(s) + # Get list of trigger command(s) commands = get_commands(bot, trigger) - # If more than 1 command, dispatch + + # If more than 1 trigger command, dispatch if len(commands) > 1: for trigger_dict in commands: sb.commands.dispatch(bot, trigger, trigger_dict) diff --git a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py index 352e7f4..218be9a 100644 --- a/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py @@ -28,6 +28,7 @@ def sopel_nickname_commands(bot, trigger): bot.say("testing nickname_commands") for x in sb.commands.sopel_nickname_commands: + bot.say(str(x)) for y in x: bot.say(str(y))