mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 01:13:14 +02:00
Update mesh_bot.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user