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: