From 8e8de4ab5cb4017fbe2ab29733db10345522e1cb Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Wed, 8 Apr 2020 16:22:28 +0200 Subject: [PATCH] =?UTF-8?q?Reacts=20with=20=F0=9F=91=8D=20when=20someone?= =?UTF-8?q?=20aswers=20trivia=20question?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gwendolyn.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gwendolyn.py b/Gwendolyn.py index a85865a..0ba8b83 100644 --- a/Gwendolyn.py +++ b/Gwendolyn.py @@ -246,7 +246,11 @@ async def on_message(message): elif message.content.lower().startswith("!trivia "): command = message.content.lower().replace("!trivia ","") - await message.channel.send(funcs.triviaOtherThing(message.author.name,str(message.channel),command)) + response = funcs.triviaOtherThing(message.author.name,str(message.channel),command) + if response.startswith("Locked in "): + await message.add_reaction("👍") + else: + await message.channel.send(response) else: funcs.logThis("I didn't understand that") await message.channel.send("I didn't understand that")