1
0
mirror of https://github.com/MrDetonia/Maki.git synced 2024-11-22 03:44:18 -05:00
This commit is contained in:
Zac Herd 2016-12-06 23:20:24 +00:00
parent 3cb3d856ad
commit 54e459b9de

4
bot.py
View File

@ -378,6 +378,10 @@ def on_message(message):
if bool(re.search(r'\b[Bb][Uu][Tt][Tt][Ee][Rr]\b', message.content)): if bool(re.search(r'\b[Bb][Uu][Tt][Tt][Ee][Rr]\b', message.content)):
yield from client.add_reaction(message, '\N{PERSON WITH FOLDED HANDS}') yield from client.add_reaction(message, '\N{PERSON WITH FOLDED HANDS}')
# egg
if bool(re.search(r'\b[Ee][Gg][Gg]\b', message.content)):
yield from client.add_reaction(message, '\N{AUBERGINE}')
# send response to channel if needed: # send response to channel if needed:
if response is not '' and message.server.id not in quiet: if response is not '' and message.server.id not in quiet:
for attempt in range(5): for attempt in range(5):