Skip to content

Commit

Permalink
[advgoogle] Case insensitive on_message string
Browse files Browse the repository at this point in the history
  • Loading branch information
Aioxas committed Nov 18, 2017
1 parent 7e7496c commit 9971f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advgoogle/advgoogle.py
Expand Up @@ -174,7 +174,7 @@ async def on_message(self, message):
channel = message.channel
str2find = "ok google "
text = message.clean_content
if not text.startswith(str2find):
if not text.lower().startswith(str2find):
return
text = text.replace(str2find, "", 1)
await self.bot.send_typing(channel)
Expand Down

0 comments on commit 9971f2e

Please sign in to comment.