From 2268e3b98c9a77eb04fe08bd872af01d931493c6 Mon Sep 17 00:00:00 2001 From: AdvJosh <26547329+AdvJosh@users.noreply.github.com> Date: Tue, 4 Mar 2025 09:31:37 -0600 Subject: [PATCH 1/2] Adding viewing instructions to urgent bulletin notification. --- message_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message_processing.py b/message_processing.py index 80ece84..9db5b41 100644 --- a/message_processing.py +++ b/message_processing.py @@ -71,7 +71,7 @@ def process_message(sender_id, message, interface, is_sync_message=False): add_bulletin(board, sender_short_name, subject, content, [], interface, unique_id=unique_id) if board.lower() == "urgent": - notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}" + notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}\nDM "CB,,Urgent" to view" send_message(notification_message, BROADCAST_NUM, interface) elif message.startswith("MAIL|"): parts = message.split("|") From 656eba7ec38a4db487b88df4bc9167bd6e891a21 Mon Sep 17 00:00:00 2001 From: AdvJosh <26547329+AdvJosh@users.noreply.github.com> Date: Tue, 4 Mar 2025 09:44:10 -0600 Subject: [PATCH 2/2] Added the view instructions to the add_bulletin function of db_operations --- db_operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_operations.py b/db_operations.py index b48af27..a439127 100644 --- a/db_operations.py +++ b/db_operations.py @@ -84,7 +84,7 @@ def add_bulletin(board, sender_short_name, subject, content, bbs_nodes, interfac # New logic to send group chat notification for urgent bulletins if board.lower() == "urgent": - notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}" + notification_message = f"💥NEW URGENT BULLETIN💥\nFrom: {sender_short_name}\nTitle: {subject}\nDM "CB,,Urgent" to view" send_message(notification_message, BROADCAST_NUM, interface) return unique_id