lunarflu commited on
Commit
f3deb3d
Β·
1 Parent(s): 7b9201c

[stable (almost) everything] verified role id -> huggingfolks role id

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 900063512829755413 # @verified for now
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: