From b43c21fc9833cc304be063f2891858657541db0a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 13 Dec 2024 10:22:33 -0800 Subject: [PATCH] emergency responder block list --- mesh_bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mesh_bot.py b/mesh_bot.py index cd13b6d..b830131 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -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