From e199d4f5ebf6e14a0441b1c8b5a000c81c011535 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 12 Oct 2025 20:03:03 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mesh_bot.py b/mesh_bot.py index d5e21d9..c502e55 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -633,6 +633,11 @@ def handleLemonade(message, nodeID, deviceID): #nodeName = get_name_from_number(highScore['userID'], 'long', 2) msg += f" HighScore🥇{nodeName} 💰{round(highScore['cash'], 2)}k " if last_cmd != "": + #update last_played + for i in range(len(lemonadeTracker)): + if lemonadeTracker[i]['nodeID'] == nodeID: + lemonadeTracker[i]['last_played'] = time.time() + # play lemonstand msg += playLemonstand(nodeID=nodeID, message=message, celsius=False) return msg