lunarflu HF staff commited on
Commit
d847070
·
verified ·
1 Parent(s): 546104d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -253,10 +253,11 @@ async def add_exp(member_id):
253
  async def on_message(message):
254
  try:
255
  if message.author.id not in bot_ids:
256
- print(f"adding exp from message {message.author}")
257
- asyncio.sleep(0.01)
258
- await add_exp(message.author.id)
259
- await periodic_api_test() # run this ~1 per day otherwise will lead to issues
 
260
  await bot.process_commands(message)
261
  except Exception as e:
262
  print(f"on_message Error: {e}")
 
253
  async def on_message(message):
254
  try:
255
  if message.author.id not in bot_ids:
256
+ if "!help_xp" not in message.content:
257
+ print(f"adding exp from message {message.author}")
258
+ asyncio.sleep(0.01)
259
+ await add_exp(message.author.id)
260
+ await periodic_api_test() # run this ~1 per day otherwise will lead to issues
261
  await bot.process_commands(message)
262
  except Exception as e:
263
  print(f"on_message Error: {e}")