From 952659198c9e4cbf54f6b26a7290b0b261a6bbf6 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 5 Nov 2024 07:45:19 -0800 Subject: [PATCH] fixes --- mesh_bot.py | 2 ++ modules/games/joke.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index e973537..787e025 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -162,6 +162,8 @@ def handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM): msg = "๐Ÿ›‘ auto-ping" try: pingCount = int(message.split(" ")[1]) + if pingCount == 123 or pingCount == 1234: + pingCount = 1 if pingCount > 51: pingCount = 50 except: diff --git a/modules/games/joke.py b/modules/games/joke.py index 1c08459..2e70f36 100644 --- a/modules/games/joke.py +++ b/modules/games/joke.py @@ -78,7 +78,7 @@ def tableOfContents(): 'whale': '๐Ÿ‹', 'dolphin': '๐Ÿฌ', 'fish': '๐ŸŸ', 'blowfish': '๐Ÿก', 'shark': '๐Ÿฆˆ', 'octopus': '๐Ÿ™', 'shell': '๐Ÿš', 'crab': '๐Ÿฆ€', 'lobster': '๐Ÿฆž', 'shrimp': '๐Ÿฆ', 'squid': '๐Ÿฆ‘', 'snail': '๐ŸŒ', 'butterfly': '๐Ÿฆ‹', 'bee': '๐Ÿ', 'beetle': '๐Ÿž', 'ant': '๐Ÿœ', 'cricket': '๐Ÿฆ—', 'spider': '๐Ÿ•ท๏ธ', 'scorpion': '๐Ÿฆ‚', 'mosquito': '๐ŸฆŸ', 'microbe': '๐Ÿฆ ', 'locomotive': '๐Ÿš‚', 'arm': '๐Ÿ’ช', 'leg': '๐Ÿฆต', 'sponge': '๐Ÿงฝ', 'toothbrush': '๐Ÿชฅ', 'broom': '๐Ÿงน', 'basket': '๐Ÿงบ', 'roll of paper': '๐Ÿงป', 'bucket': '๐Ÿชฃ', 'soap': '๐Ÿงผ', 'toilet paper': '๐Ÿงป', 'shower': '๐Ÿšฟ', 'bathtub': '๐Ÿ›', 'razor': '๐Ÿช’', 'lotion': '๐Ÿงด', - 'letter': 'โœ‰๏ธ', 'envelope': 'โœ‰๏ธ', 'mail': '๐Ÿ“ฌ', 'post': '๐Ÿ“ฎ', 'golf': 'โ›ณ๏ธ', 'golfing': 'โ›ณ๏ธ', 'office': '๐Ÿข', 'work': '๐Ÿ’ผ', 'meeting': '๐Ÿ“…', 'presentation': '๐Ÿ“Š', 'report': '๐Ÿ“„', 'document': '๐Ÿ“„', + 'letter': 'โœ‰๏ธ', 'envelope': 'โœ‰๏ธ', 'mail': '๐Ÿ“ฌ', 'post': '๐Ÿ“ฎ', 'golf': 'โ›ณ๏ธ', 'golfing': 'โ›ณ๏ธ', 'office': '๐Ÿข', 'meeting': '๐Ÿ“…', 'presentation': '๐Ÿ“Š', 'report': '๐Ÿ“„', 'document': '๐Ÿ“„', 'file': '๐Ÿ“', 'folder': '๐Ÿ“‚', 'sports': '๐Ÿ…', 'athlete': '๐Ÿƒ', 'competition': '๐Ÿ†', 'race': '๐Ÿ', 'tournament': '๐Ÿ†', 'champion': '๐Ÿ†', 'medal': '๐Ÿ…', 'victory': '๐Ÿ†', 'win': '๐Ÿ†', 'lose': '๐Ÿ˜ž', 'draw': '๐Ÿค', 'team': '๐Ÿ‘ฅ', 'player': '๐Ÿ‘ค', 'coach': '๐Ÿ‘จโ€๐Ÿซ', 'referee': '๐Ÿง‘โ€โš–๏ธ', 'stadium': '๐ŸŸ๏ธ', 'arena': '๐ŸŸ๏ธ', 'field': '๐ŸŸ๏ธ', 'court': '๐ŸŸ๏ธ', 'track': '๐ŸŸ๏ธ', 'gym': '๐Ÿ‹๏ธ', 'fitness': '๐Ÿ‹๏ธ', 'exercise': '๐Ÿ‹๏ธ', 'workout': '๐Ÿ‹๏ธ', 'training': '๐Ÿ‹๏ธ', 'practice': '๐Ÿ‹๏ธ', 'game': '๐ŸŽฎ', 'match': '๐ŸŽฎ', 'score': '๐Ÿ…', 'goal': '๐Ÿฅ…', 'point': '๐Ÿ…', 'basket': '๐Ÿ€', 'home run': 'โšพ๏ธ', 'strike': '๐ŸŽณ', 'spare': '๐ŸŽณ', 'frame': '๐ŸŽณ',