From 767d607f3f898dd4a4bf2c49776322b783edf78b Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Wed, 8 Apr 2020 18:04:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Some=20more=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gwendolyn.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Gwendolyn.py b/Gwendolyn.py index d0a8b52..2558670 100644 --- a/Gwendolyn.py +++ b/Gwendolyn.py @@ -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)