lunarflu HF staff commited on
Commit
91f6a94
1 Parent(s): 2af9d2b

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -65,9 +65,14 @@ async def add_exp(member):
65
  lvl13 = guild.get_role(1171525021928263791)
66
  lvl14 = guild.get_role(1171525062201966724)
67
  lvl15 = guild.get_role(1171525098465918996)
 
 
 
 
 
68
  lvls = {
69
  1: lvl1, 2: lvl2, 3: lvl3, 4: lvl4, 5: lvl5, 6: lvl6, 7: lvl7, 8: lvl8, 9: lvl9, 10: lvl10,
70
- 11: lvl11, 12: lvl12, 13: lvl13, 14: lvl14, 15: lvl15,
71
  }
72
  #if member.id == 811235357663297546:
73
  # does a record already exist?
@@ -96,7 +101,7 @@ async def add_exp(member):
96
  # write with added xp
97
  worksheet.update(values=[[xp, current_level]], range_name=f'C{cell.row}:D{cell.row}')
98
  # level up
99
- if current_level >= 2 and current_level <=15:
100
  current_role = lvls[current_level]
101
  if current_role not in member.roles:
102
  await member.add_roles(current_role)
 
65
  lvl13 = guild.get_role(1171525021928263791)
66
  lvl14 = guild.get_role(1171525062201966724)
67
  lvl15 = guild.get_role(1171525098465918996)
68
+ lvl16 = guild.get_role(1176826165546201099)
69
+ lvl17 = guild.get_role(1176826221301092392)
70
+ lvl18 = guild.get_role(1176826260643659776)
71
+ lvl19 = guild.get_role(1176826288816791693)
72
+ lvl20 = guild.get_role(1176826319447801896)
73
  lvls = {
74
  1: lvl1, 2: lvl2, 3: lvl3, 4: lvl4, 5: lvl5, 6: lvl6, 7: lvl7, 8: lvl8, 9: lvl9, 10: lvl10,
75
+ 11: lvl11, 12: lvl12, 13: lvl13, 14: lvl14, 15: lvl15, 16: lvl16, 17: lvl17, 18: lvl18, 19: lvl19, 20: lvl20,
76
  }
77
  #if member.id == 811235357663297546:
78
  # does a record already exist?
 
101
  # write with added xp
102
  worksheet.update(values=[[xp, current_level]], range_name=f'C{cell.row}:D{cell.row}')
103
  # level up
104
+ if current_level >= 2 and current_level <=20:
105
  current_role = lvls[current_level]
106
  if current_role not in member.roles:
107
  await member.add_roles(current_role)