lunarflu HF staff commited on
Commit
5ac73d7
1 Parent(s): 8e6ba6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -242,13 +242,16 @@ async def add_exp(member_id):
242
  # if level 3 -> then send embed, remove some exp
243
  if current_level >= 3:
244
  verified_role = guild.get_role(900063512829755413)
245
- if verified_role not in member.roles:
 
 
 
246
 
247
  # send embed
248
  embed = Embed(color=Color.red())
249
  embed.set_author(name=f"{member}", icon_url=member.avatar.url if member.avatar else bot.user.avatar.url)
250
  embed.title = f"⚠️Your account is not Verified! Unable to level up `{current_level-1}` -> `{current_level}` ❌"
251
- msg = f'🤗 Hey {member}! You can continue leveling up in the Hugging Face Discord server by Verifying your account!'
252
  embed.description = f"{msg}"
253
  verification_link = "https://discord.com/channels/879548962464493619/900125909984624713"
254
  embed.add_field(name="Verify Here:", value=verification_link, inline=True)
 
242
  # if level 3 -> then send embed, remove some exp
243
  if current_level >= 3:
244
  verified_role = guild.get_role(900063512829755413)
245
+ if verified_role not in member.roles:
246
+
247
+ # claim exp
248
+ claim_exp = new_xp - 30
249
 
250
  # send embed
251
  embed = Embed(color=Color.red())
252
  embed.set_author(name=f"{member}", icon_url=member.avatar.url if member.avatar else bot.user.avatar.url)
253
  embed.title = f"⚠️Your account is not Verified! Unable to level up `{current_level-1}` -> `{current_level}` ❌"
254
+ msg = f'🤗 Hey {member}! You can continue leveling up in the Hugging Face Discord server by Verifying your account, and claim `{claim_exp}` plus `100` bonus exp points!'
255
  embed.description = f"{msg}"
256
  verification_link = "https://discord.com/channels/879548962464493619/900125909984624713"
257
  embed.add_field(name="Verify Here:", value=verification_link, inline=True)