fix: Clarify missing verify role message
All checks were successful
Build Docker / Build Image (push) Successful in 20s
All checks were successful
Build Docker / Build Image (push) Successful in 20s
This commit is contained in:
parent
2f9aae058d
commit
35f49fb94a
6
bot.py
6
bot.py
@ -208,12 +208,10 @@ async def on_reaction_add(reaction, user):
|
|||||||
|
|
||||||
if str(reaction.message.guild.id) in roles:
|
if str(reaction.message.guild.id) in roles:
|
||||||
if roles[str(reaction.message.guild.id)] not in [role.id for role in user.roles]:
|
if roles[str(reaction.message.guild.id)] not in [role.id for role in user.roles]:
|
||||||
await reaction.message.channel.send("You don't have permission to approve this gift")
|
await reaction.message.channel.send("You don't have permission to approve this gift\nRun /verify to be eligable to approve gifts")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
message = "You don't have permission to approve this gift\n"
|
await reaction.message.channel.send("You don't have permission to approve this gift\nRun /verify to be eligable to approve gifts")
|
||||||
message += "Run /verify to be eligable to approve gifts"
|
|
||||||
await reaction.message.channel.send(message)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if (datetime.datetime.now() - faucet_message["time"]).total_seconds() > 900:
|
if (datetime.datetime.now() - faucet_message["time"]).total_seconds() > 900:
|
||||||
|
Loading…
Reference in New Issue
Block a user