From f79026a95f03dc5b685f6555d0f7b03345e9a981 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 24 Sep 2025 15:16:37 -0700 Subject: [PATCH] enhance DEBUGpackets, debugMetadata hidden config.ini values --- mesh_bot.py | 4 +--- modules/settings.py | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 0f741f2..a165338 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -17,9 +17,7 @@ from modules.system import * # list of commands to remove from the default list for DM only restrictedCommands = ["blackjack", "videopoker", "dopewars", "lemonstand", "golfsim", "mastermind", "hangman", "hamtest"] restrictedResponse = "🤖only available in a Direct Message📵" # "" for none - -# Global Variables -DEBUGpacket = False # Debug print the packet rx +cmdHistory = [] # list to hold the command history for lheard and history commands def auto_response(message, snr, rssi, hop, pkiStatus, message_from_id, channel_number, deviceID, isDM): global cmdHistory diff --git a/modules/settings.py b/modules/settings.py index 4e8c834..28cfd51 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -373,6 +373,7 @@ try: maxBuffer = config['messagingSettings'].getint('maxBuffer', 200) # default 200 enableHopLogs = config['messagingSettings'].getboolean('enableHopLogs', False) # default False debugMetadata = config['messagingSettings'].getboolean('debugMetadata', False) # default False + DEBUGpackets = config['messagingSettings'].getboolean('DEBUGpackets', False) # default False noisyNodeLogging = config['messagingSettings'].getboolean('noisyNodeLogging', False) # default False noisyTelemetryLimit = config['messagingSettings'].getint('noisyTelemetryLimit', 5) # default 5 packets except Exception as e: