Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-19 23:11:31 -07:00
parent 230ca95262
commit 333cb0c0c7
+2 -2
View File
@@ -241,11 +241,11 @@ def get_node_location(number):
def send_message(message,ch,nodeid):
if nodeid == 0:
#Send to channel
print (f"{log_timestamp()} System: Sending: {message} \nTo: Channel:{ch}\n")
print (f"{log_timestamp()} System: Sending: {message.strip()} To: Channel:{ch}")
interface.sendText(text=message,channelIndex=ch)
else:
#Send to DM
print (f"{log_timestamp()} System: Sending: {message} \nTo: {get_name_from_number(nodeid)}\n")
print (f"{log_timestamp()} System: Sending: {message.strip()} To: {get_name_from_number(nodeid)}")
interface.sendText(text=message,channelIndex=ch,destinationId=nodeid)
def exit_handler(signum, frame):