lunarflu commited on
Commit Β·
f3deb3d
1
Parent(s): 7b9201c
[stable (almost) everything] verified role id -> huggingfolks role id
Browse files
app.py
CHANGED
|
@@ -70,13 +70,13 @@ async def safetychecks(ctx):
|
|
| 70 |
|
| 71 |
#β
β
check if the command is in the allowed channel(s)
|
| 72 |
channel_id = 1100458786826747945
|
| 73 |
-
if ctx.channel.id != 1100458786826747945:
|
| 74 |
print(f"Error: This is not a permitted channel for that command. (bot-test is the correct channel)")
|
| 75 |
return False
|
| 76 |
|
| 77 |
#β
β
check if the user has the required role(s)
|
| 78 |
guild_id = 879548962464493619
|
| 79 |
-
required_role_id =
|
| 80 |
guild = bot.get_guild(guild_id)
|
| 81 |
required_role = guild.get_role(required_role_id)
|
| 82 |
if required_role not in ctx.author.roles:
|
|
|
|
| 70 |
|
| 71 |
#β
β
check if the command is in the allowed channel(s)
|
| 72 |
channel_id = 1100458786826747945
|
| 73 |
+
if ctx.channel.id != 1100458786826747945: # #bot-test = 1100458786826747945
|
| 74 |
print(f"Error: This is not a permitted channel for that command. (bot-test is the correct channel)")
|
| 75 |
return False
|
| 76 |
|
| 77 |
#β
β
check if the user has the required role(s)
|
| 78 |
guild_id = 879548962464493619
|
| 79 |
+
required_role_id = 897376942817419265 # @verified = 900063512829755413, HF = 897376942817419265
|
| 80 |
guild = bot.get_guild(guild_id)
|
| 81 |
required_role = guild.get_role(required_role_id)
|
| 82 |
if required_role not in ctx.author.roles:
|