parent
35f49fb94a
commit
c0f030919a
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ __pycache__/
|
|||||||
roles.json
|
roles.json
|
||||||
|
|
||||||
faucet.json
|
faucet.json
|
||||||
|
.venv
|
||||||
|
4
bot.py
4
bot.py
@ -208,10 +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\nRun /verify to be eligable to approve gifts")
|
await reaction.message.channel.send("You don't have permission to approve this gift\nRun /verify to be eligible to approve gifts")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
await reaction.message.channel.send("You don't have permission to approve this gift\nRun /verify to be eligable to approve gifts")
|
await reaction.message.channel.send("You don't have permission to approve this gift\nRun /verify to be eligible to approve gifts")
|
||||||
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