update reactions

This commit is contained in:
Adora Laura Kalb 2024-01-01 18:12:09 +01:00
parent aa8c5d5d8b
commit d346a556e0
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056

5
app.py
View file

@ -75,15 +75,18 @@ async def on_message(message):
return
logger.info(
f"{command} by {message.author.name}, Game: {messagearray[1]}")
await message.add_reaction("")
success = HandleSystemdService(game, command)
# :white_check_mark: :x:
if success:
await message.remove_reaction("")
logger.info(
f"{command} by {message.author.name}, Game: {messagearray[1]} was SUCESSFUL")
await message.add_reaction("")
await message.channel.send(f"Successfully started {game['displayname']}! Happy gaming! 🎮")
await message.channel.send(f"Successfully started {game['displayname']}! Happy gaming {message.author.mention}! 🎮")
else:
await message.remove_reaction("")
logger.error(
f"{command} by {message.author.name}, Game: {messagearray[1]} FAILED!")
await message.add_reaction("")