Add a random xmas emoji to all messages cause fuck you
This commit is contained in:
parent
87cafe7f4f
commit
3c5b65547c
@ -6,6 +6,7 @@ then imported into the main bot
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import random
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
import animals
|
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
|
# Read messages and look for mentions of subreddits
|
||||||
for word in message.content.split():
|
for word in message.content.split():
|
||||||
if (message.author != client.user) and '/r/' in word:
|
if (message.author != client.user) and '/r/' in word:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user