Compare commits

..

1 commit

Author SHA1 Message Date
Ricardo Dantas c83671a023
Merge 9ece3719c7 into 27279577dd 2025-01-03 15:23:32 -05:00

View file

@ -32,9 +32,6 @@ def build_menu(items, menu_name):
if item.strip() == 'Q':
menu_str += "[Q]uick Commands\n"
elif item.strip() == 'B':
if menu_name == "📰BBS Menu📰":
menu_str += "[B]ulletins\n"
else:
menu_str += "[B]BS\n"
elif item.strip() == 'U':
menu_str += "[U]tilities\n"
@ -54,6 +51,7 @@ def build_menu(items, menu_name):
menu_str += "[W]all of Shame\n"
return menu_str
def handle_help_command(sender_id, interface, menu_name=None):
if menu_name:
update_user_state(sender_id, {'command': 'MENU', 'menu': menu_name, 'step': 1})
@ -524,6 +522,9 @@ def handle_post_bulletin_command(sender_id, message, interface, bbs_nodes):
unique_id = add_bulletin(board_name, sender_short_name, subject, content, bbs_nodes, interface)
send_message(f"Your bulletin '{subject}' has been posted to {board_name}.", sender_id, interface)
if board_name.lower() == "urgent":
notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}"
send_message(notification_message, BROADCAST_NUM, interface)
except Exception as e:
logging.error(f"Error processing post bulletin command: {e}")