📝 Some more comments

This commit is contained in:
NikolajDanger
2020-04-08 18:04:53 +02:00
parent 68dc74f235
commit 4f24a11e03

View File

@ -6,6 +6,7 @@ import pickle
import codecs
import string
import json
import random
import funcs
@ -201,6 +202,8 @@ async def on_message(message):
else:
await message.channel.send(desc)
# Searches for a specific page on the Senkulpa Wiki
elif message.content.lower().startswith("!wiki "):
async with message.channel.typing():
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
@ -217,6 +220,8 @@ async def on_message(message):
else:
await message.channel.send(content)
# Runs a trivia game
elif message.content.lower().startswith("!trivia"):
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
if message.content.lower() == "!trivia" or message.content.lower() == "!trivia ":
@ -256,8 +261,10 @@ async def on_message(message):
await message.channel.send("I didn't understand that")
if ("gwendolyn" in message.content.lower() or message.content.startswith("!")) and ("bitch" in message.content.lower() or "fuck" in message.content.lower()):
await message.add_reaction("😠")
# Is a bit sassy sometimes
if ("gwendolyn" in message.content.lower() or message.content.startswith("!")) and ("bitch" in message.content.lower() or "fuck" in message.content.lower()) and "ikke" in message.content.lower() and "not" in message.content.lower():
emoji = random.choice(["😠", "🖕", "👎"])
await message.add_reaction(emoji)
# Runs the whole shabang
client.run(token)