Update mesh_bot.py

This commit is contained in:
SpudGunMan
2024-09-18 14:54:37 -07:00
parent c07f756d67
commit 68fabef2be
+2
View File
@@ -502,6 +502,7 @@ def onReceive(packet, interface):
#if time exceeds 8 hours reset the player
if dwPlayerTracker[i].get('last_played') < (time.time() - 28800):
logger.debug(f"System: DopeWars: Resetting player {message_from_id}")
dwPlayerTracker.pop(i)
# play the game
@@ -519,6 +520,7 @@ def onReceive(packet, interface):
#if time exceeds 8 hours reset the player
if lemonadeTracker[i].get('time') < (time.time() - 28800):
logger.debug(f"System: LemonadeStand: Resetting player {message_from_id}")
lemonadeTracker.pop(i)
# play the game