Spaces:
Running on CPU Upgrade

lunarflu HF staff commited on
Commit
6afc40a
·
verified ·
1 Parent(s): 5432ce2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -255,7 +255,7 @@ async def add_exp(member_id):
255
  # if level 3 -> then send embed, remove some exp
256
  if current_level >= 3: # could change to 4 maybe
257
  if verified_role not in member.roles:
258
- if new_xp % 10 == 0: # staggers messages so we don't send one every time exp is earned
259
  # claim exp (-30 for level 3, but +100 as bonus exp. This scales infinitely until the member verifies,
260
  # so they can continue earning exp, it just won't translate to levels and the leaderboard.
261
  # This way they can claim at any time and get a big boost in levels!
@@ -277,7 +277,8 @@ async def add_exp(member_id):
277
  embed.set_image(url='https://cdn.discordapp.com/attachments/1150399343912833024/1205537451242688573/download_1.png?ex=65d8bb3e&is=65c6463e&hm=042fe7dd3521887db0bd48eeb846de1cc7c75194f9e95215c23512ff61ea3475&')
278
 
279
  lunar = bot.get_user(811235357663297546)
280
- await lunar.send(embed=embed)
 
281
  return
282
 
283
 
@@ -315,7 +316,7 @@ async def add_exp(member_id):
315
  embed.add_field(name="Verify Here:", value=verification_link, inline=True)
316
 
317
  lunar = bot.get_user(811235357663297546)
318
- await lunar.send(embed=embed)
319
  print(f"Sent levelup embed to {member}")
320
  #You can verify your account to earn 100 points! To verify, do A.
321
 
 
255
  # if level 3 -> then send embed, remove some exp
256
  if current_level >= 3: # could change to 4 maybe
257
  if verified_role not in member.roles:
258
+ if new_xp % 50 == 0: # staggers messages so we don't send one every time exp is earned
259
  # claim exp (-30 for level 3, but +100 as bonus exp. This scales infinitely until the member verifies,
260
  # so they can continue earning exp, it just won't translate to levels and the leaderboard.
261
  # This way they can claim at any time and get a big boost in levels!
 
277
  embed.set_image(url='https://cdn.discordapp.com/attachments/1150399343912833024/1205537451242688573/download_1.png?ex=65d8bb3e&is=65c6463e&hm=042fe7dd3521887db0bd48eeb846de1cc7c75194f9e95215c23512ff61ea3475&')
278
 
279
  lunar = bot.get_user(811235357663297546)
280
+ await member.send(embed=embed)
281
+ print(f"Sent verification cap embed to {member}")
282
  return
283
 
284
 
 
316
  embed.add_field(name="Verify Here:", value=verification_link, inline=True)
317
 
318
  lunar = bot.get_user(811235357663297546)
319
+ await member.send(embed=embed)
320
  print(f"Sent levelup embed to {member}")
321
  #You can verify your account to earn 100 points! To verify, do A.
322