mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-03-05 20:51:53 -08:00
Compare commits
1 commit
382a19996f
...
c83671a023
Author | SHA1 | Date | |
---|---|---|---|
|
c83671a023 |
|
@ -32,10 +32,7 @@ def build_menu(items, menu_name):
|
||||||
if item.strip() == 'Q':
|
if item.strip() == 'Q':
|
||||||
menu_str += "[Q]uick Commands\n"
|
menu_str += "[Q]uick Commands\n"
|
||||||
elif item.strip() == 'B':
|
elif item.strip() == 'B':
|
||||||
if menu_name == "📰BBS Menu📰":
|
menu_str += "[B]BS\n"
|
||||||
menu_str += "[B]ulletins\n"
|
|
||||||
else:
|
|
||||||
menu_str += "[B]BS\n"
|
|
||||||
elif item.strip() == 'U':
|
elif item.strip() == 'U':
|
||||||
menu_str += "[U]tilities\n"
|
menu_str += "[U]tilities\n"
|
||||||
elif item.strip() == 'X':
|
elif item.strip() == 'X':
|
||||||
|
@ -54,6 +51,7 @@ def build_menu(items, menu_name):
|
||||||
menu_str += "[W]all of Shame\n"
|
menu_str += "[W]all of Shame\n"
|
||||||
return menu_str
|
return menu_str
|
||||||
|
|
||||||
|
|
||||||
def handle_help_command(sender_id, interface, menu_name=None):
|
def handle_help_command(sender_id, interface, menu_name=None):
|
||||||
if menu_name:
|
if menu_name:
|
||||||
update_user_state(sender_id, {'command': 'MENU', 'menu': menu_name, 'step': 1})
|
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)
|
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)
|
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:
|
except Exception as e:
|
||||||
logging.error(f"Error processing post bulletin command: {e}")
|
logging.error(f"Error processing post bulletin command: {e}")
|
||||||
|
|
Loading…
Reference in a new issue