From ee411b8502243c67c5c32893a7b59ead237b0c2c Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 25 Jun 2019 11:33:41 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/Prerun.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot/Prerun.py b/sopel_modules/SpiceBot/Prerun.py index 1737f46..ddab243 100644 --- a/sopel_modules/SpiceBot/Prerun.py +++ b/sopel_modules/SpiceBot/Prerun.py @@ -27,12 +27,13 @@ def prerun(t_command_type='module'): trigger_command_type = t_command_type.replace("_match", '') else: trigger_command_type = t_command_type - bot.say(str(trigger_command_type)) + if trigger_command_type not in list(botcommands.dict["commands"].keys()): return # Primary command used for trigger, and a list of all words trigger_args, trigger_command = make_trigger_args(trigger.args[1], trigger_command_type) + bot.say(str(trigger_command)) if t_command_type.endswith("_match"): if trigger_command in list(botcommands.dict["commands"][trigger_command_type].keys()):