Reacts with 👍 when someone aswers trivia question

This commit is contained in:
NikolajDanger
2020-04-08 16:22:28 +02:00
parent fc06a0a33c
commit f0da32aafa

View File

@ -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")