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 """