mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-06 17:03:04 +02:00
Update mesh-bot.py
This commit is contained in:
+2
-2
@@ -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.strip()} To: Channel:{ch}")
|
||||
print (f"{log_timestamp()} System: Sending: {message.replace("\n", "")} To: Channel:{ch}")
|
||||
interface.sendText(text=message,channelIndex=ch)
|
||||
else:
|
||||
#Send to DM
|
||||
print (f"{log_timestamp()} System: Sending: {message.strip()} To: {get_name_from_number(nodeid)}")
|
||||
print (f"{log_timestamp()} System: Sending: {message.replace("\n", "")} To: {get_name_from_number(nodeid)}")
|
||||
interface.sendText(text=message,channelIndex=ch,destinationId=nodeid)
|
||||
|
||||
def exit_handler(signum, frame):
|
||||
|
||||
Reference in New Issue
Block a user