lunarflu HF staff commited on
Commit
a2a259d
1 Parent(s): 8a36c89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(level)
98
 
99
  message_author_name = message.author.name
100
- worksheet.update(values=[[string_member_id, message_author_name, xp, level]], range_name=f'A{length+1}:D{length+1}')
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}")