mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-03-05 20:51:53 -08:00
Compare commits
No commits in common. "69d74e33ddc1d9e3992401ee3bee626664322200" and "27279577dddccbe82544e1b7c22e100894dfa45d" have entirely different histories.
69d74e33dd
...
27279577dd
|
@ -32,10 +32,7 @@ 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"
|
||||
menu_str += "[B]BS\n"
|
||||
elif item.strip() == 'U':
|
||||
menu_str += "[U]tilities\n"
|
||||
elif item.strip() == 'X':
|
||||
|
@ -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})
|
||||
|
@ -382,7 +380,7 @@ def handle_channel_directory_steps(sender_id, message, step, state, interface):
|
|||
else:
|
||||
send_message("No channels available in the directory.", sender_id, interface)
|
||||
handle_channel_directory_command(sender_id, interface)
|
||||
elif choice.lower() == 'p':
|
||||
elif choice.lower == 'p':
|
||||
send_message("Name your channel for the directory:", sender_id, interface)
|
||||
update_user_state(sender_id, {'command': 'CHANNEL_DIRECTORY', 'step': 3})
|
||||
|
||||
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue