Reacts with 👍 when someone aswers trivia question
This commit is contained in:
1 parent
6fea10127e
commit
8e8de4ab5c
1 file changed
+5
-1
+5
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user