better ? detection

This commit is contained in:
deathbybandaid 2019-05-13 16:23:14 -04:00
parent fc9d4d1772
commit 4ba356918f

View File

@ -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']):