mirror of
https://github.com/MrDetonia/Maki.git
synced 2024-11-22 20:00:00 -05:00
v0.16.8 stopped emoji regex being silly
This commit is contained in:
parent
e9d546439b
commit
a60c310995
4
bot.py
4
bot.py
@ -30,7 +30,7 @@ from secret import token
|
|||||||
# CONFIGURATION
|
# CONFIGURATION
|
||||||
|
|
||||||
# bot version
|
# bot version
|
||||||
version = "v0.16.7"
|
version = "v0.16.8"
|
||||||
|
|
||||||
# text shown by .help command
|
# text shown by .help command
|
||||||
helptext = """I am a Discord bot written in Python
|
helptext = """I am a Discord bot written in Python
|
||||||
@ -299,7 +299,7 @@ def on_message(message):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
# someone noticed me! <3
|
# 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}')
|
yield from client.add_reaction(message, '\N{BLACK HEART SUIT}')
|
||||||
|
|
||||||
# send response to channel if needed:
|
# send response to channel if needed:
|
||||||
|
Loading…
Reference in New Issue
Block a user