lunarflu HF staff commited on
Commit
11e8cb9
·
verified ·
1 Parent(s): c78fdb7

readd bot dm with org invite link upon verification (more visible, redundant)

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -223,6 +223,8 @@ async def give_verified_roles():
223
  global global_df
224
  guild = bot.get_guild(879548962464493619)
225
  role = guild.get_role(900063512829755413)
 
 
226
  await guild.chunk()
227
  for index, row in global_df.iterrows():
228
  hf_user_name = row['hf_user_name']
@@ -235,6 +237,7 @@ async def give_verified_roles():
235
  await member.add_roles(role)
236
  lunar = bot.get_user(811235357663297546)
237
  await lunar.send(f"Verified role given to {member}!")
 
238
 
239
 
240
  thread_pool_executor = ThreadPoolExecutor(max_workers=2)
 
223
  global global_df
224
  guild = bot.get_guild(879548962464493619)
225
  role = guild.get_role(900063512829755413)
226
+ org_link = "https://huggingface.co/organizations/discord-community/share/wPKRAHYbAlaEaCxUxcqVyaaaeZcYagDvqc"
227
+ invite_message = "Click to join our community org on the HF Hub!"
228
  await guild.chunk()
229
  for index, row in global_df.iterrows():
230
  hf_user_name = row['hf_user_name']
 
237
  await member.add_roles(role)
238
  lunar = bot.get_user(811235357663297546)
239
  await lunar.send(f"Verified role given to {member}!")
240
+ await member.send(f"Verification successful! [{member} <---> {row['discord_user_name']}] \n🤗 {org_link} {invite_message}")
241
 
242
 
243
  thread_pool_executor = ThreadPoolExecutor(max_workers=2)