From 5adb682ff7a6434ebe0f47f780f2243ef0b1428e Mon Sep 17 00:00:00 2001 From: noon92 <40807970+noon92@users.noreply.github.com> Date: Sun, 22 Sep 2024 23:03:58 +0300 Subject: [PATCH] Update command_handlers.py --- command_handlers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command_handlers.py b/command_handlers.py index 798c110..0cd708d 100644 --- a/command_handlers.py +++ b/command_handlers.py @@ -63,7 +63,9 @@ def handle_help_command(sender_id, interface, menu_name=None): update_user_state(sender_id, {'command': 'MAIN_MENU', 'step': 1}) # Reset to main menu state response = build_menu(main_menu_items, "💾TC² BBS💾") send_message(response, sender_id, interface) - + mail = get_mail(get_node_id_from_num(sender_id, interface)) + if mail: + send_message(f"You have {len(mail)} mail messages.", sender_id, interface) def get_node_name(node_id, interface): node_info = interface.nodes.get(node_id)