Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -90,14 +90,14 @@ async def on_message(message):
|
|
90 |
# if not, create new record
|
91 |
string_member_id = str(message.author.id)
|
92 |
xp = 10
|
93 |
-
|
94 |
print(string_member_id)
|
95 |
print(message.author.name)
|
96 |
print(xp)
|
97 |
-
print(
|
98 |
|
99 |
message_author_name = message.author.name
|
100 |
-
worksheet.update(values=[[string_member_id, message_author_name, xp,
|
101 |
else:
|
102 |
if cell:
|
103 |
print(f"updating record for {message.author}")
|
|
|
90 |
# if not, create new record
|
91 |
string_member_id = str(message.author.id)
|
92 |
xp = 10
|
93 |
+
new_level = calcular_level(xp)
|
94 |
print(string_member_id)
|
95 |
print(message.author.name)
|
96 |
print(xp)
|
97 |
+
print(new_level)
|
98 |
|
99 |
message_author_name = message.author.name
|
100 |
+
worksheet.update(values=[[string_member_id, message_author_name, xp, new_level]], range_name=f'A{length+1}:D{length+1}')
|
101 |
else:
|
102 |
if cell:
|
103 |
print(f"updating record for {message.author}")
|