Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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")
|