From 2a254a7fabaa4d7dc9172d4e26fac1c8883d8b50 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 27 Sep 2024 01:06:15 -0700 Subject: [PATCH] fixNewTable.pkl --- mesh_bot.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 36bb6f6..19c7fef 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -370,8 +370,9 @@ def handleBlackJack(nodeID, message): else: highScore = {'nodeID': 0, 'highScore': 0} highScore = loadHSJack() - if highScore['nodeID'] != 0: - msg += f" RankingšŸ„‡:{get_name_from_number(highScore['nodeID'])} with {highScore['highScore']} chips. " + if highScore != 0: + if highScore['nodeID'] != 0: + msg += f" RankingšŸ„‡:{get_name_from_number(highScore['nodeID'])} with {highScore['highScore']} chips. " time.sleep(1) return msg @@ -401,8 +402,9 @@ def handleVideoPoker(nodeID, message): if last_cmd == "new": highScore = {'nodeID': 0, 'highScore': 0} highScore = loadHSVp() - if highScore['nodeID'] != 0: - msg += f" RankingšŸ„‡:{get_name_from_number(highScore['nodeID'])} with {highScore['highScore']} chips. " + if highScore != 0: + if highScore['nodeID'] != 0: + msg += f" RankingšŸ„‡:{get_name_from_number(highScore['nodeID'])} with {highScore['highScore']} chips. " if last_cmd != "": logger.debug(f"System: VideoPoker: {nodeID} last command: {last_cmd}")