From 04132fe7cd6cd02b8d7d1ebb3297bd98c9041c7c Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 4 Jun 2019 15:57:33 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot_AI/AI_aiml.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sopel_modules/SpiceBot_AI/AI_aiml.py b/sopel_modules/SpiceBot_AI/AI_aiml.py index 417f261..84cd807 100644 --- a/sopel_modules/SpiceBot_AI/AI_aiml.py +++ b/sopel_modules/SpiceBot_AI/AI_aiml.py @@ -33,6 +33,8 @@ def bot_command_rule(bot, trigger): if com not in commands_list: commands_list.append(com) if trigger_command not in commands_list: + if not SpiceBot.letters_in_string(trigger_command): + return invalid_display = ["I don't seem to have a command for " + str(trigger_command) + "!"] invalid_display.append("If you have a suggestion for this command, you can run .feature ." + str(trigger_command)) invalid_display.append("ADD DESCRIPTION HERE!")