Compare commits

...

3 commits

Author SHA1 Message Date
TC² 2b7d47cb29
Merge pull request #119 from AdvJosh/main
Adding viewing instructions to urgent bulletin notification.
2025-03-04 12:03:47 -05:00
AdvJosh 656eba7ec3 Added the view instructions to the add_bulletin function of db_operations 2025-03-04 09:44:10 -06:00
AdvJosh 2268e3b98c Adding viewing instructions to urgent bulletin notification. 2025-03-04 09:31:37 -06:00
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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("|")