From 4da3748e3d4bf2aefc1687cac851d5a63c1f9f34 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 24 Feb 2022 08:32:49 -0500 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 5b491f4..a60c2fb 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -19,11 +19,11 @@ def prerun(rulematch=False): # Since there was more than one command, # we are going to redispatch commands # This will give sopel the appearance of recieving individual commands - bot.say(str(commands)) + sb.osd(str(commands), trigger.sender) if len(commands) > 1: for trigger_dict in commands: - bot.say("multi - dispatching %s %s" % (trigger_dict["trigger_command"], trigger_dict["trigger_str"])) - bot.say(str(trigger_dict)) + sb.osd("multi - dispatching %s %s" % (trigger_dict["trigger_command"], trigger_dict["trigger_str"]), trigger.sender) + sb.osd(str(trigger_dict), trigger.sender) sb.commands.dispatch(trigger_dict) return @@ -31,7 +31,7 @@ def prerun(rulematch=False): # so we will now redispatch to help get the correct function passed trigger_command = sb.commands.get_command_from_trigger(trigger) if trigger_command != commands[0]["trigger_command"]: - bot.say("command changes - dispatching %s %s" % (commands[0]["trigger_command"], commands[0]["trigger_str"])) + sb.osd("command changes - dispatching %s %s" % (commands[0]["trigger_command"], commands[0]["trigger_str"]), trigger.sender) sb.commands.dispatch(commands[0]) return @@ -42,7 +42,7 @@ def prerun(rulematch=False): trigger_command = sb.commands.get_command_from_trigger(trigger) if trigger_command != commands[0]["trigger_command"]: trigger_dict = rebuild_pipes(commands) - bot.say("pipes - dispatching %s %s" % (trigger_dict["trigger_command"], trigger_dict["trigger_str"])) + sb.osd("pipes - dispatching %s %s" % (trigger_dict["trigger_command"], trigger_dict["trigger_str"]), trigger.sender) sb.commands.dispatch(trigger_dict) return