From 5a4ee9299fa40ce5ba4553bb82922f124d5eb7d4 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 20 Jun 2024 22:58:50 -0700 Subject: [PATCH] Update mesh-bot.py --- mesh-bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mesh-bot.py b/mesh-bot.py index 248a09c..5e4986a 100755 --- a/mesh-bot.py +++ b/mesh-bot.py @@ -263,11 +263,11 @@ def send_message(message,ch,nodeid): for m in message_list: if nodeid == 0: #Send to channel - print (f"{log_timestamp()} System: Sending: {m} To: Channel:{ch}") + print (f"{log_timestamp()} System: Sending Multi-Chunk: {m} To: Channel:{ch}") interface.sendText(text=m,channelIndex=ch) else: #Send to DM - print (f"{log_timestamp()} System: Sending: {m} To: {get_name_from_number(nodeid)}") + print (f"{log_timestamp()} System: Sending Multi-Chunk: {m} To: {get_name_from_number(nodeid)}") interface.sendText(text=m,channelIndex=ch,destinationId=nodeid) else: if nodeid == 0: @@ -278,6 +278,7 @@ def send_message(message,ch,nodeid): #Send to DM print (f"{log_timestamp()} System: Sending: {message} To: {get_name_from_number(nodeid)}") interface.sendText(text=message,channelIndex=ch,destinationId=nodeid) + def exit_handler(signum, frame): print("\nSystem: Closing Autoresponder")