From ea374051498b051ebb2d4a48dbfd2a31381b0649 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 8 Dec 2024 19:48:54 -0800 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 54f821f..4c2e039 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -215,7 +215,9 @@ def handle_emergency(message_from_id, deviceID, message): send_message(msg, emergency_responder_alert_channel, 0, emergency_responder_alert_interface) logger.warning(f"System: {message_from_id} Emergency Assistance Requested in {message}") # send the message out via email/sms - + if enableSMTP: + for user in sysopEmails: + send_email(user, f"Emergency Assistance Requested by {nodeInfo} in {message}", message_from_id) # respond to the user time.sleep(responseDelay + 2) return EMERGENCY_RESPONSE