From 4ba356918fdad3d51e46d9c372839c04f32fcab0 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Mon, 13 May 2019 16:23:14 -0400 Subject: [PATCH] better ? detection --- sopel_modules/SpiceBot_AI/AI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot_AI/AI.py b/sopel_modules/SpiceBot_AI/AI.py index b2fc9c7..1c75b56 100644 --- a/sopel_modules/SpiceBot_AI/AI.py +++ b/sopel_modules/SpiceBot_AI/AI.py @@ -14,7 +14,7 @@ from sopel_modules.SpiceBot_Events.System import bot_events_check def bot_command_nick(bot, trigger): # command must not start with - if str(trigger).startswith(tuple(['?'])): + if str(trigger.args[1])[0] == "?": return while not bot_events_check(bot, ['1004', '2002']):