From a308436410e30a117a0ecc2503a8f9f9f828eade Mon Sep 17 00:00:00 2001 From: lauralani Date: Mon, 1 Jan 2024 18:14:43 +0100 Subject: [PATCH] fix messages for stop and restart --- app.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 063bc3e..5312113 100644 --- a/app.py +++ b/app.py @@ -84,7 +84,12 @@ async def on_message(message): 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 {message.author.mention}! 🎮") + if command == "start": + 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: await message.remove_reaction("⏳") logger.error(