lunarflu HF staff commited on
Commit
30d9ea2
1 Parent(s): 169d0a2

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -140,9 +140,10 @@ def calculate_level(xp):
140
  async def level(ctx):
141
  if ctx.author.id == 811235357663297546:
142
 
143
- for author_id, xp_value in xp_data.items():
144
  try:
145
  current_level = calculate_level(xp_value)
 
146
  user = bot.get_user(author_id)
147
  print(f"user: {user} | xp: {xp_value} | level: {current_level}")
148
 
 
140
  async def level(ctx):
141
  if ctx.author.id == 811235357663297546:
142
 
143
+ for author_id_str, xp_value in xp_data.items():
144
  try:
145
  current_level = calculate_level(xp_value)
146
+ author_id = int(author_id_str)
147
  user = bot.get_user(author_id)
148
  print(f"user: {user} | xp: {xp_value} | level: {current_level}")
149