From 1d7ae4b1b10954a2bf7d1eb8bbe3cadc13241d0e Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 22 Feb 2022 15:31:17 -0500 Subject: [PATCH] test --- .../SBCore/commands/__init__.py | 25 ++++++++++++------- sopel_SpiceBot_Core_Prerun/pipe_split.py | 2 +- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index 86d9fe7..f3ac470 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -205,15 +205,22 @@ class Commands(): trigger_type = assumed_trigger_type trigger_prefix = assumed_trigger_prefix - if not trigger_str.isspace(): + commands.append({ + "trigger_type": trigger_type, + "trigger_prefix": trigger_prefix, + "trigger_str": trigger_str, + "trigger_command": trigger_command, + "trigger_hostmask": trigger.hostmask, + "trigger_sender": trigger.sender + }) - commands.append({ - "trigger_type": trigger_type, - "trigger_prefix": trigger_prefix, - "trigger_str": trigger_str, - "trigger_command": trigger_command, - "trigger_hostmask": trigger.hostmask, - "trigger_sender": trigger.sender - }) + print({ + "trigger_type": trigger_type, + "trigger_prefix": trigger_prefix, + "trigger_str": trigger_str, + "trigger_command": trigger_command, + "trigger_hostmask": trigger.hostmask, + "trigger_sender": trigger.sender + }) return commands diff --git a/sopel_SpiceBot_Core_Prerun/pipe_split.py b/sopel_SpiceBot_Core_Prerun/pipe_split.py index cc2a2fb..80aa7ac 100644 --- a/sopel_SpiceBot_Core_Prerun/pipe_split.py +++ b/sopel_SpiceBot_Core_Prerun/pipe_split.py @@ -5,7 +5,7 @@ from sopel_SpiceBot_Core_1 import sb def pipe_split(): """ - This splits the given command by ` | ` and re-dispatches it internally to the bot. + This splits the given command by `|` and re-dispatches it internally to the bot. This allows the output of a command to be sent """