From a60c310995bfa11b6dee393672933df616a4c052 Mon Sep 17 00:00:00 2001 From: Zac Herd Date: Mon, 7 Nov 2016 22:25:21 +0000 Subject: [PATCH] v0.16.8 stopped emoji regex being silly --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 59577d9..bb53aa9 100644 --- a/bot.py +++ b/bot.py @@ -30,7 +30,7 @@ from secret import token # CONFIGURATION # bot version -version = "v0.16.7" +version = "v0.16.8" # text shown by .help command helptext = """I am a Discord bot written in Python @@ -299,7 +299,7 @@ def on_message(message): pass # someone noticed me! <3 - if "Maki" in message.content or "maki" in message.content: + if bool(re.search(r'\b[Mm][Aa][Kk][Ii]\b', message.content)): yield from client.add_reaction(message, '\N{BLACK HEART SUIT}') # send response to channel if needed: