mirror of
https://github.com/TheCommsChannel/TC2-APRS-BBS.git
synced 2025-06-29 00:07:21 -04:00
Add Urgent Bulletins
This commit is contained in:
parent
bd784eeb05
commit
311fea5b6b
4 changed files with 55 additions and 8 deletions
12
commands.py
12
commands.py
|
@ -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!",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue