feat: Edit message after approval
All checks were successful
Build Docker / Build Image (push) Successful in 31s
All checks were successful
Build Docker / Build Image (push) Successful in 31s
This commit is contained in:
parent
b8610e743a
commit
2f9aae058d
7
bot.py
7
bot.py
@ -220,10 +220,13 @@ async def on_reaction_add(reaction, user):
|
|||||||
await reaction.message.channel.send("This gift has expired")
|
await reaction.message.channel.send("This gift has expired")
|
||||||
return
|
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"])
|
receiver = await client.fetch_user(faucet_message["user"])
|
||||||
await receiver.send(resault)
|
await receiver.send(result)
|
||||||
faucet_messages.remove(faucet_message)
|
faucet_messages.remove(faucet_message)
|
||||||
|
# Update message
|
||||||
|
await reaction.message.edit(content="Approved by " + user.name)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user