Update command_handlers.py

This commit is contained in:
noon92 2024-09-22 23:03:58 +03:00 committed by GitHub
parent b778b8b6cd
commit 5adb682ff7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 update_user_state(sender_id, {'command': 'MAIN_MENU', 'step': 1}) # Reset to main menu state
response = build_menu(main_menu_items, "💾TC² BBS💾") response = build_menu(main_menu_items, "💾TC² BBS💾")
send_message(response, sender_id, interface) 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): def get_node_name(node_id, interface):
node_info = interface.nodes.get(node_id) node_info = interface.nodes.get(node_id)