Skip to content

Commit

Permalink
emergency responder block list
Browse files Browse the repository at this point in the history
  • Loading branch information
SpudGunMan committed Dec 13, 2024
1 parent e115f33 commit b43c21f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mesh_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ def handle_alertBell(message_from_id, deviceID, message):
return random.choice(msg)

def handle_emergency(message_from_id, deviceID, message):
# if user in bbs_ban_list return
if str(message_from_id) in bbs_ban_list:
# silent discard
logger.warning(f"System: {message_from_id} on spam list, no emergency responder alert sent")
return ''
# trgger alert to emergency_responder_alert_channel
if message_from_id != 0:
if deviceID == 1: rxNode = myNodeNum1
Expand Down

0 comments on commit b43c21f

Please sign in to comment.