Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -21,13 +21,7 @@ def calculate_level(xp):
|
|
21 |
""""""
|
22 |
|
23 |
|
24 |
-
|
25 |
-
async def on_ready():
|
26 |
-
print(f'Logged in as {bot.user.name}')
|
27 |
-
print(f"XP_PER_MESSAGE: {XP_PER_MESSAGE}")
|
28 |
-
print(f"xp_data: {xp_data}")
|
29 |
-
for author in xp_data:
|
30 |
-
print(f"XP people: {author}")
|
31 |
|
32 |
try:
|
33 |
with open('xp_data.json', 'r') as f:
|
@@ -101,7 +95,13 @@ async def top_users(ctx, limit: int = 10):
|
|
101 |
"""
|
102 |
|
103 |
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
|
107 |
|
|
|
21 |
""""""
|
22 |
|
23 |
|
24 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
try:
|
27 |
with open('xp_data.json', 'r') as f:
|
|
|
95 |
"""
|
96 |
|
97 |
|
98 |
+
@bot.event
|
99 |
+
async def on_ready():
|
100 |
+
print(f'Logged in as {bot.user.name}')
|
101 |
+
print(f"XP_PER_MESSAGE: {XP_PER_MESSAGE}")
|
102 |
+
print(f"xp_data: {xp_data}")
|
103 |
+
for author in xp_data:
|
104 |
+
print(f"XP people: {author}")
|
105 |
|
106 |
|
107 |
|