Add Urgent Bulletins

This commit is contained in:
TC² 2025-01-08 10:42:14 -05:00
parent bd784eeb05
commit 311fea5b6b
4 changed files with 55 additions and 8 deletions

View file

@ -37,6 +37,18 @@ def handle_command(callsign, command):
return [f"Message sent to {recipient}."]
return ["Usage: SEND <callsign> <text>"]
elif cmd in ['PU']:
if arg:
database.add_bulletin(normalized_callsign, f"URGENT: {arg}")
urgent_bulletin = f"URGENT: {arg}"
bulletin_id = "BLN1"
aprs_comm.send_bulletin(bulletin_id, urgent_bulletin)
return ["Urgent bulletin posted and transmitted."]
return ["Usage: PU <text>"]
else:
return [
"Hello and Welcome to the TC2-BBS!",