Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
adding exp from GETTING reacts
Browse files
app.py
CHANGED
@@ -312,14 +312,13 @@ async def on_reaction_add(reaction, user):
|
|
312 |
print(f"adding exp from react {user.id}")
|
313 |
await asyncio.sleep(1)
|
314 |
await add_exp(user.id)
|
|
|
|
|
315 |
except Exception as e:
|
316 |
print(f"on_reaction_add Error: {e}")
|
317 |
|
318 |
|
319 |
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
@bot.command(name='update_leaderboard')
|
324 |
async def update_leaderboard(ctx, num_results: int = 10): # needs rewrite
|
325 |
try:
|
|
|
312 |
print(f"adding exp from react {user.id}")
|
313 |
await asyncio.sleep(1)
|
314 |
await add_exp(user.id)
|
315 |
+
await asyncio.sleep(1)
|
316 |
+
await add_exp(reaction.message.author.id)
|
317 |
except Exception as e:
|
318 |
print(f"on_reaction_add Error: {e}")
|
319 |
|
320 |
|
321 |
|
|
|
|
|
|
|
322 |
@bot.command(name='update_leaderboard')
|
323 |
async def update_leaderboard(ctx, num_results: int = 10): # needs rewrite
|
324 |
try:
|