feat: Edit message after approval
All checks were successful
Build Docker / Build Image (push) Successful in 31s

This commit is contained in:
Nathan Woodburn 2023-11-09 11:40:08 +11:00
parent b8610e743a
commit 2f9aae058d
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

7
bot.py
View File

@ -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