Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -693,6 +693,7 @@ async def send_hub_org_dm_retroactive(ctx, role_id):
|
|
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:
|
|
|
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 member.send(dm_message)
|
697 |
await lunar.send(dm_message)
|
698 |
await asyncio.sleep(5)
|
699 |
except discord.Forbidden:
|