fix messages for stop and restart

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

5
app.py
View file

@ -84,7 +84,12 @@ async def on_message(message):
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("")
if command == "start":
await message.channel.send(f"Successfully started {game['displayname']}! Happy gaming {message.author.mention}! 🎮") await message.channel.send(f"Successfully started {game['displayname']}! Happy gaming {message.author.mention}! 🎮")
elif command == "stop":
await message.channel.send(f"Successfully stopped {game['displayname']}! Good night {message.author.mention}! 😴💤")
elif command == "restart":
await message.channel.send(f"Successfully restarted {game['displayname']}! Happy gaming {message.author.mention}! 🎮")
else: else:
await message.remove_reaction("") await message.remove_reaction("")
logger.error( logger.error(