From 2f9aae058dd5a33ab8839679de324f71baf4b287 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 9 Nov 2023 11:40:08 +1100 Subject: [PATCH] feat: Edit message after approval --- bot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 395c69e..3955432 100644 --- a/bot.py +++ b/bot.py @@ -220,10 +220,13 @@ async def on_reaction_add(reaction, user): await reaction.message.channel.send("This gift has expired") return - resault = await send_domain(faucet_message["user"], faucet_message["email"]) + result = await send_domain(faucet_message["user"], faucet_message["email"]) receiver = await client.fetch_user(faucet_message["user"]) - await receiver.send(resault) + await receiver.send(result) faucet_messages.remove(faucet_message) + # Update message + await reaction.message.edit(content="Approved by " + user.name) + return