From e7a115f412ce186995b7228a2b2c481774f86e26 Mon Sep 17 00:00:00 2001 From: Zac Herd Date: Sat, 22 Apr 2017 14:37:51 +0000 Subject: [PATCH] v0.20.1, better case ignoring --- bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index 69fe4f4..02f0b68 100644 --- a/bot.py +++ b/bot.py @@ -31,7 +31,7 @@ from secret import token, lfmkey, steamkey # CONFIGURATION # bot version -version = "v0.20.0" +version = "v0.20.1" # text shown by .help command helptext = """I am a Discord bot written in Python @@ -423,15 +423,15 @@ def on_message(message): pass # someone noticed me! <3 - if bool(re.search(r'\b[Mm][Aa][Kk][Ii]\b', message.content)): + if bool(re.search(r'\bmaki\b', message.content, re.IGNORECASE)): yield from client.add_reaction(message, '\N{BLACK HEART SUIT}') # butter - if bool(re.search(r'\b[Bb][Uu][Tt][Tt][Ee][Rr]\b', message.content)): + if bool(re.search(r'\bbutter\b', message.content, re.IGNORECASE)): yield from client.add_reaction(message, '\N{PERSON WITH FOLDED HANDS}') # egg - if bool(re.search(r'\b[Ee][Gg][Gg]\b', message.content)): + if bool(re.search(r'\begg\b', message.content, re.IGNORECASE)): yield from client.add_reaction(message, '\N{AUBERGINE}') # send response to channel if needed: