Reacts with 👍 when someone aswers trivia question
This commit is contained in:
@ -246,7 +246,11 @@ async def on_message(message):
|
|||||||
|
|
||||||
elif message.content.lower().startswith("!trivia "):
|
elif message.content.lower().startswith("!trivia "):
|
||||||
command = message.content.lower().replace("!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:
|
else:
|
||||||
funcs.logThis("I didn't understand that")
|
funcs.logThis("I didn't understand that")
|
||||||
await message.channel.send("I didn't understand that")
|
await message.channel.send("I didn't understand that")
|
||||||
|
Reference in New Issue
Block a user