Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
|
@@ -140,9 +140,10 @@ def calculate_level(xp):
|
|
| 140 |
async def level(ctx):
|
| 141 |
if ctx.author.id == 811235357663297546:
|
| 142 |
|
| 143 |
-
for
|
| 144 |
try:
|
| 145 |
current_level = calculate_level(xp_value)
|
|
|
|
| 146 |
user = bot.get_user(author_id)
|
| 147 |
print(f"user: {user} | xp: {xp_value} | level: {current_level}")
|
| 148 |
|
|
|
|
| 140 |
async def level(ctx):
|
| 141 |
if ctx.author.id == 811235357663297546:
|
| 142 |
|
| 143 |
+
for author_id_str, xp_value in xp_data.items():
|
| 144 |
try:
|
| 145 |
current_level = calculate_level(xp_value)
|
| 146 |
+
author_id = int(author_id_str)
|
| 147 |
user = bot.get_user(author_id)
|
| 148 |
print(f"user: {user} | xp: {xp_value} | level: {current_level}")
|
| 149 |
|