lunarflu HF staff commited on
Commit
6c5c085
·
verified ·
1 Parent(s): 7be2917

increase level cap to 50

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -214,13 +214,25 @@ async def add_exp(member_id):
214
  lvl37 = guild.get_role(1206542754625101866)
215
  lvl38 = guild.get_role(1206542771314364416)
216
  lvl39 = guild.get_role(1206542785973321758)
217
- lvl40 = guild.get_role(1206542802155208725)
 
 
 
 
 
 
 
 
 
 
 
218
 
219
  lvls = {
220
  1: lvl1, 2: lvl2, 3: lvl3, 4: lvl4, 5: lvl5, 6: lvl6, 7: lvl7, 8: lvl8, 9: lvl9, 10: lvl10,
221
  11: lvl11, 12: lvl12, 13: lvl13, 14: lvl14, 15: lvl15, 16: lvl16, 17: lvl17, 18: lvl18, 19: lvl19, 20: lvl20,
222
  21: lvl21, 22: lvl22, 23: lvl23, 24: lvl24, 25: lvl25, 26: lvl26, 27: lvl27, 28: lvl28, 29: lvl29, 30: lvl30,
223
  31: lvl31, 32: lvl32, 33: lvl33, 34: lvl34, 35: lvl35, 36: lvl36, 37: lvl37, 38: lvl38, 39: lvl39, 40: lvl40,
 
224
  }
225
 
226
  # xp = int64
@@ -315,7 +327,7 @@ async def add_exp(member_id):
315
  verified_role = guild.get_role(900063512829755413)
316
 
317
  print(f"Current_level for {member}: {current_level}")
318
- if current_level >= 2 and current_level <=40:
319
  print("test6")
320
  current_role = lvls[current_level]
321
  if current_role not in member.roles: # if we need to level up / update role
 
214
  lvl37 = guild.get_role(1206542754625101866)
215
  lvl38 = guild.get_role(1206542771314364416)
216
  lvl39 = guild.get_role(1206542785973321758)
217
+ lvl40 = guild.get_role(1206542802155208725)
218
+
219
+ lvl41 = guild.get_role(1206568953221218354)
220
+ lvl42 = guild.get_role(1206568979393413150)
221
+ lvl43 = guild.get_role(1206568997374394368)
222
+ lvl44 = guild.get_role(1206569014747463681)
223
+ lvl45 = guild.get_role(1206569031650385921)
224
+ lvl46 = guild.get_role(1206569047207182356)
225
+ lvl47 = guild.get_role(1206569062851805254)
226
+ lvl48 = guild.get_role(1206569077112315984)
227
+ lvl49 = guild.get_role(1206569091826057306)
228
+ lvl50 = guild.get_role(1206569107118493757)
229
 
230
  lvls = {
231
  1: lvl1, 2: lvl2, 3: lvl3, 4: lvl4, 5: lvl5, 6: lvl6, 7: lvl7, 8: lvl8, 9: lvl9, 10: lvl10,
232
  11: lvl11, 12: lvl12, 13: lvl13, 14: lvl14, 15: lvl15, 16: lvl16, 17: lvl17, 18: lvl18, 19: lvl19, 20: lvl20,
233
  21: lvl21, 22: lvl22, 23: lvl23, 24: lvl24, 25: lvl25, 26: lvl26, 27: lvl27, 28: lvl28, 29: lvl29, 30: lvl30,
234
  31: lvl31, 32: lvl32, 33: lvl33, 34: lvl34, 35: lvl35, 36: lvl36, 37: lvl37, 38: lvl38, 39: lvl39, 40: lvl40,
235
+ 41: lvl41, 42: lvl42, 43: lvl43, 44: lvl44, 45: lvl45, 46: lvl46, 47: lvl47, 48: lvl48, 49: lvl49, 50: lvl50,
236
  }
237
 
238
  # xp = int64
 
327
  verified_role = guild.get_role(900063512829755413)
328
 
329
  print(f"Current_level for {member}: {current_level}")
330
+ if current_level >= 2 and current_level <=50:
331
  print("test6")
332
  current_role = lvls[current_level]
333
  if current_role not in member.roles: # if we need to level up / update role