lunarflu HF staff commited on
Commit
eafbd19
1 Parent(s): d870674

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -234,6 +234,7 @@ async def on_message(message):
234
  try:
235
  if message.author.id not in bot_ids:
236
  print(f"adding exp from message {message.author}")
 
237
  await add_exp(message.author.id)
238
  #await periodic_api_test() # run this ~1 per day otherwise will lead to issues
239
  await bot.process_commands(message)
@@ -245,6 +246,7 @@ async def on_message(message):
245
  async def on_reaction_add(reaction, user):
246
  try:
247
  if user.id not in bot_ids:
 
248
  await add_exp(user.id)
249
  except Exception as e:
250
  print(f"on_reaction_add Error: {e}")
 
234
  try:
235
  if message.author.id not in bot_ids:
236
  print(f"adding exp from message {message.author}")
237
+ print(f"adding exp from message {message.author.id}")
238
  await add_exp(message.author.id)
239
  #await periodic_api_test() # run this ~1 per day otherwise will lead to issues
240
  await bot.process_commands(message)
 
246
  async def on_reaction_add(reaction, user):
247
  try:
248
  if user.id not in bot_ids:
249
+ print(f"adding exp from react {user.id}")
250
  await add_exp(user.id)
251
  except Exception as e:
252
  print(f"on_reaction_add Error: {e}")