Spaces:
Build error
Build error
Adam Molnar commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,7 +295,7 @@ async def add_exp(member_id):
|
|
| 295 |
new_xp = new_xp[1:-1]
|
| 296 |
new_xp = int(new_xp)
|
| 297 |
|
| 298 |
-
if new_xp %
|
| 299 |
# claim exp (-30 for level 3, but +100 as bonus exp. This scales infinitely until the member verifies,
|
| 300 |
# so they can continue earning exp, it just won't translate to levels and the leaderboard.
|
| 301 |
# This way they can claim at any time and get a big boost in levels!
|
|
|
|
| 295 |
new_xp = new_xp[1:-1]
|
| 296 |
new_xp = int(new_xp)
|
| 297 |
|
| 298 |
+
if new_xp % 10 == 0: # staggers messages so we don't send one every time exp is earned
|
| 299 |
# claim exp (-30 for level 3, but +100 as bonus exp. This scales infinitely until the member verifies,
|
| 300 |
# so they can continue earning exp, it just won't translate to levels and the leaderboard.
|
| 301 |
# This way they can claim at any time and get a big boost in levels!
|