Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
|
|
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}")
|