lunarflu HF staff commited on
Commit
d757d3b
1 Parent(s): 146c3c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -692,8 +692,9 @@ async def send_hub_org_dm_retroactive(ctx, role_id):
692
  if role:
693
  for member in role.members:
694
  try:
695
- dm_message = f"Hey {member}! You've just been invited to join the Hugging Face Discord Community org! 🤗\n If you're interested in collaborating on open source projects, hanging out with the community or just enjoying your new badge, we're happy to have you! ❤️"
696
  await lunar.send(dm_message)
 
697
  except discord.Forbidden:
698
  print(f"Could not DM {member.name}")
699
  await lunar.send(f"Could not DM {member.name} a Hugging Face Org invite link")
 
692
  if role:
693
  for member in role.members:
694
  try:
695
+ dm_message = f"Hey {member}! You've just been invited to join the Hugging Face Discord Community org! 🤗\n If you're interested in collaborating on open source projects, hanging out with the community or just enjoying your new badge, we're happy to have you! ❤️ https://huggingface.co/organizations/discord-community/share/wPKRAHYbAlaEaCxUxcqVyaaaeZcYagDvqc"
696
  await lunar.send(dm_message)
697
+ await asyncio.sleep(5)
698
  except discord.Forbidden:
699
  print(f"Could not DM {member.name}")
700
  await lunar.send(f"Could not DM {member.name} a Hugging Face Org invite link")