lunarflu HF staff commited on
Commit
fa1b29f
1 Parent(s): b5e3666

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -61,7 +61,7 @@ async def on_message(message):
61
  xp_data.setdefault(author_id, 0) # default if it doesn't already exist
62
 
63
  xp_data[author_id] += XP_PER_MESSAGE
64
- print(f"xp_data: {xp_data}")
65
  save_xp_data()
66
 
67
 
@@ -69,12 +69,6 @@ async def on_message(message):
69
  try:
70
  if message.author.id == 811235357663297546:
71
  # get level
72
- # if level 10 -> update with role id 1164188093713223721
73
- # 11 1171524944354607104
74
- # 12 1171524990257082458
75
- # 13 1171525021928263791
76
- # 14 1171525062201966724
77
- # 15 1171525098465918996
78
  guild = bot.get_guild(879548962464493619)
79
  current_level = calculate_level(xp_data[author_id])
80
  lvl10 = guild.get_role(1164188093713223721)
 
61
  xp_data.setdefault(author_id, 0) # default if it doesn't already exist
62
 
63
  xp_data[author_id] += XP_PER_MESSAGE
64
+ #print(f"xp_data: {xp_data}")
65
  save_xp_data()
66
 
67
 
 
69
  try:
70
  if message.author.id == 811235357663297546:
71
  # get level
 
 
 
 
 
 
72
  guild = bot.get_guild(879548962464493619)
73
  current_level = calculate_level(xp_data[author_id])
74
  lvl10 = guild.get_role(1164188093713223721)