Compare commits

..

1 commit

Author SHA1 Message Date
noon92 29d85b5ff0
Merge 5e06ab1e3f into b778b8b6cd 2024-09-23 21:53:23 -07:00
2 changed files with 3 additions and 4 deletions

View file

@ -186,7 +186,7 @@ def on_receive(packet, interface):
sender_short_name = get_node_short_name(sender_node_id, interface) sender_short_name = get_node_short_name(sender_node_id, interface)
receiver_short_name = get_node_short_name(get_node_id_from_num(to_id, interface), receiver_short_name = get_node_short_name(get_node_id_from_num(to_id, interface),
interface) if to_id else "Group Chat" interface) if to_id else "Group Chat"
logging.info(f"Received message from user '{sender_short_name}' ({sender_node_id}) to {receiver_short_name}: {message_string}") logging.info(f"Received message from user '{sender_short_name}' to {receiver_short_name}: {message_string}")
bbs_nodes = interface.bbs_nodes bbs_nodes = interface.bbs_nodes
is_sync_message = any(message_string.startswith(prefix) for prefix in is_sync_message = any(message_string.startswith(prefix) for prefix in

View file

@ -20,11 +20,10 @@ def send_message(message, destination, interface):
d = interface.sendText( d = interface.sendText(
text=chunk, text=chunk,
destinationId=destination, destinationId=destination,
wantAck=True, wantAck=False,
wantResponse=False wantResponse=False
) )
destid = get_node_id_from_num(destination, interface) logging.info(f"REPLY SEND ID={d.id}")
logging.info(f"Sending message to user '{get_node_short_name(destid, interface)}' ({destid}) with sendID {d.id}: \'{chunk.replace("\n", "\\n")}\'")
except Exception as e: except Exception as e:
logging.info(f"REPLY SEND ERROR {e.message}") logging.info(f"REPLY SEND ERROR {e.message}")