fix remove_reaction

This commit is contained in:
Adora Laura Kalb 2024-01-01 18:23:12 +01:00
parent 0bf5c17df3
commit 2eed23dabc
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056

4
app.py
View file

@ -80,7 +80,7 @@ async def on_message(message):
# :white_check_mark: :x: # :white_check_mark: :x:
if success: if success:
await message.remove_reaction("") await message.remove_reaction("", client.user.id)
logger.info( logger.info(
f"{command} by {message.author.name}, Game: {messagearray[1]} was SUCESSFUL") f"{command} by {message.author.name}, Game: {messagearray[1]} was SUCESSFUL")
await message.add_reaction("") await message.add_reaction("")
@ -91,7 +91,7 @@ async def on_message(message):
elif command == "restart": elif command == "restart":
await message.channel.send(f"Successfully restarted {game['displayname']}! Happy gaming {message.author.mention}! 🎮") await message.channel.send(f"Successfully restarted {game['displayname']}! Happy gaming {message.author.mention}! 🎮")
else: else:
await message.remove_reaction("") await message.remove_reaction("", client.user.id)
logger.error( logger.error(
f"{command} by {message.author.name}, Game: {messagearray[1]} FAILED!") f"{command} by {message.author.name}, Game: {messagearray[1]} FAILED!")
await message.add_reaction("") await message.add_reaction("")