From 8373eb63bd6545bbcf4e6cde721cfdddcc41bd1e Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 5 Jun 2019 15:31:36 -0400 Subject: [PATCH] better? --- sopel_modules/SpiceBot_AI/AI_aiml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot_AI/AI_aiml.py b/sopel_modules/SpiceBot_AI/AI_aiml.py index 0c9cfe0..cd48826 100644 --- a/sopel_modules/SpiceBot_AI/AI_aiml.py +++ b/sopel_modules/SpiceBot_AI/AI_aiml.py @@ -65,7 +65,7 @@ def bot_command_rule(bot, trigger): else: if command_type == 'nickname': - if fulltrigger.lower().startswith(tuple(["what is", "where is"])): + if trigger_args[0].lower() in ["what", "where"] and trigger_args[0].lower() in ["is", "are"]: searchterm = spicemanip.main(trigger_args, "3+") or None if searchterm: if trigger_args[0].lower() == "where":