From 0d34f8ad854851593ef4174304602e6e0755c532 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 24 Feb 2022 10:48:06 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_1/SBCore/commands/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py index f7baf4b..fa0b232 100644 --- a/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py +++ b/sopel_SpiceBot_Core_1/SBCore/commands/__init__.py @@ -272,7 +272,6 @@ class Commands(): else: trigger_command = full_trigger_str.split(" ")[0] trigger_str = " ".join([x.strip() for x in full_trigger_str.split(" ")[1:]]) - print("[%s]" % trigger_str) command_types = ["command", "nickname_command", "action_command"] # Assume same command type until proven otherwise @@ -308,7 +307,8 @@ class Commands(): trigger_type = assumed_trigger_type trigger_prefix = assumed_trigger_prefix - if not full_trigger_str.isspace() and full_trigger_str not in ['', None]: + if (not full_trigger_str.isspace() and full_trigger_str not in ['', None] + and not trigger_command.isspace() and trigger_command not in ['', None]): commands.append({ "trigger_type": trigger_type,