From 205906ebb74ef6f90016a28ea29367ed4fd0c59b Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 21 Sep 2024 16:19:32 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mesh_bot.py b/mesh_bot.py index f771f71..b8cb006 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -361,6 +361,15 @@ def handleVideoPoker(nodeID, message): user = vpTracker[i]['nodeID'] if user != 0: msg += f"\nHigh Score: {high_score} by {get_name_from_number(user)}" + + # # Save the game high_score to pickle + # try: + # with open('videopoker_hs.pkl', 'wb') as file: + # pickle.dump(high_score, file) + # except FileNotFoundError: + # logger.debug("System: BlackJack: Creating new videopoker_hs.pkl file") + # with open('videopoker_hs.pkl', 'wb') as file: + # pickle.dump(high_score, file) if last_cmd != "": logger.debug(f"System: VideoPoker: {nodeID} last command: {last_cmd}")