📝 Some more comments
This commit is contained in:
11
Gwendolyn.py
11
Gwendolyn.py
@ -6,6 +6,7 @@ import pickle
|
|||||||
import codecs
|
import codecs
|
||||||
import string
|
import string
|
||||||
import json
|
import json
|
||||||
|
import random
|
||||||
|
|
||||||
import funcs
|
import funcs
|
||||||
|
|
||||||
@ -201,6 +202,8 @@ async def on_message(message):
|
|||||||
else:
|
else:
|
||||||
await message.channel.send(desc)
|
await message.channel.send(desc)
|
||||||
|
|
||||||
|
|
||||||
|
# Searches for a specific page on the Senkulpa Wiki
|
||||||
elif message.content.lower().startswith("!wiki "):
|
elif message.content.lower().startswith("!wiki "):
|
||||||
async with message.channel.typing():
|
async with message.channel.typing():
|
||||||
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
|
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
|
||||||
@ -217,6 +220,8 @@ async def on_message(message):
|
|||||||
else:
|
else:
|
||||||
await message.channel.send(content)
|
await message.channel.send(content)
|
||||||
|
|
||||||
|
|
||||||
|
# Runs a trivia game
|
||||||
elif message.content.lower().startswith("!trivia"):
|
elif message.content.lower().startswith("!trivia"):
|
||||||
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
|
funcs.logThis(message.author.name+" ran \""+message.content+"\"")
|
||||||
if message.content.lower() == "!trivia" or message.content.lower() == "!trivia ":
|
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")
|
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()):
|
# Is a bit sassy sometimes
|
||||||
await message.add_reaction("😠")
|
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
|
# Runs the whole shabang
|
||||||
client.run(token)
|
client.run(token)
|
||||||
|
Reference in New Issue
Block a user