Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -267,7 +267,8 @@ async def restore_exp(ctx):
|
|
267 |
for member_id in role_members:
|
268 |
member = await bot.fetch_user(member_id)
|
269 |
#xp = calculate_xp(13)
|
270 |
-
|
|
|
271 |
level = calculate_level(xp+1)
|
272 |
print(f"{role} {level} {xp} {member}")
|
273 |
|
|
|
267 |
for member_id in role_members:
|
268 |
member = await bot.fetch_user(member_id)
|
269 |
#xp = calculate_xp(13)
|
270 |
+
position = level_roles.index(role) + 1
|
271 |
+
xp = calculate_xp(position)
|
272 |
level = calculate_level(xp+1)
|
273 |
print(f"{role} {level} {xp} {member}")
|
274 |
|