diff --git a/mesh_bot.py b/mesh_bot.py index c1d17a8..4ddb695 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -610,10 +610,13 @@ def handle_lheard(message, nodeid, deviceID, isDM): bot_response += "\nUptime:" + str(uptimeSeconds) if interface2_enabled: bot_response += f" P2:" + {uptimeSeconds2} + # add battery info to the bot response + emji = "πŸ”Œ" if batteryLevel == 101 else "πŸͺ«" if batteryLevel < 10 else "πŸ”‹" + emji2 = "πŸ”Œ" if batteryLevel2 == 101 else "πŸͺ«" if batteryLevel2 < 10 else "πŸ”‹" if not batteryLevel == 101: - bot_response += f" Bat: {batteryLevel}% Volt: {voltage}" - if interface2_enabled and not batteryLevel2 == 101: - bot_response += f" P2: Bat: {batteryLevel2}% Volt: {voltage2}" + bot_response += f" {emji}{batteryLevel}% Volt:{voltage}" + if interface2_enabled and not batteryLevel2 == 101: + bot_response += f" P2:{emji2}{batteryLevel2}% Volt:{voltage2}" # show last users of the bot with the cmdHistory list history = handle_history(message, nodeid, deviceID, isDM, lheard=True) if history: diff --git a/modules/mmind.py b/modules/mmind.py index 4427a12..d4dca77 100644 --- a/modules/mmind.py +++ b/modules/mmind.py @@ -264,8 +264,8 @@ def playGameMMind(diff, secret_code, turn_count, nodeID, message): if mindTracker[i]['nodeID'] == nodeID: mindTracker[i]['turns'] = turn_count elif won == False: - msg += f"\nGame Over! The code was: {getEmojiMMind(secret_code)}" - msg += "\nYou have run out of turns." + msg += f"πŸ™‰Game OverπŸ™ˆ\nThe code was: {getEmojiMMind(secret_code)}" + msg += "\nYou have run out of turns.😿" msg += "\nWould you like to play again? (N)ormal, (H)ard, or e(X)pert?" # reset turn count in tracker for i in range(len(mindTracker)):