Add a random xmas emoji to all messages cause fuck you

This commit is contained in:
Luke Robles 2018-12-21 10:07:49 -08:00
parent 87cafe7f4f
commit 3c5b65547c

View File

@ -6,6 +6,7 @@ then imported into the main bot
"""
import os
import random
import requests
import animals
@ -103,6 +104,12 @@ async def on_message(message):
)
)
##################### Holiday cheer ################
xmas_emojis = ['christmaspanda', 'owopresent', 'mikupresent']
xmas_emoji = discord.utils.get(client.get_all_emojis(), name=random.choice(xmas_emojis))
await client.add_reaction(message, xmas_emoji)
# Read messages and look for mentions of subreddits
for word in message.content.split():
if (message.author != client.user) and '/r/' in word: