From 5506544371b0dc0f45d984e99172e28b59360249 Mon Sep 17 00:00:00 2001 From: Blergo Date: Wed, 3 Jul 2024 18:21:48 +0100 Subject: [PATCH] Message optimisation More message optimisation for large mesh reliability --- command_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command_handlers.py b/command_handlers.py index cf97618..8e41624 100644 --- a/command_handlers.py +++ b/command_handlers.py @@ -266,7 +266,7 @@ def handle_mail_steps(sender_id, message, step, state, interface, bbs_nodes): handle_help_command(sender_id, interface) update_user_state(sender_id, None) elif choice == '1': - send_message("What is the Short Name of the node you want to leave a message for?", sender_id, interface) + send_message("What is the Short Name of the node you want to send mail to?", sender_id, interface) update_user_state(sender_id, {'command': 'MAIL', 'step': 3}) elif choice == '2': handle_help_command(sender_id, interface) @@ -298,7 +298,7 @@ def handle_mail_steps(sender_id, message, step, state, interface, bbs_nodes): send_message(f"What is the subject of your message to {recipient_name}?\nKeep it short.", sender_id, interface) update_user_state(sender_id, {'command': 'MAIL', 'step': 5, 'recipient_id': recipient_id}) else: - send_message("There are multiple nodes with that short name. Which one would you like to leave a message for?", sender_id, interface) + send_message("There are multiple nodes with that short name. Which one would you like to send mail to?", sender_id, interface) for i, node in enumerate(nodes): send_message(f"[{i}] {node['longName']}", sender_id, interface) update_user_state(sender_id, {'command': 'MAIL', 'step': 6, 'nodes': nodes})