From 061573344537b4eadbeb009b77e0ff2c2f77924d Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 8 Dec 2024 11:32:30 -0800 Subject: [PATCH] enhance emergencyResponder --- mesh_bot.py | 2 +- modules/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 76609ea..e1b29b3 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -213,7 +213,7 @@ def handle_emergency(message_from_id, deviceID, message): # respond to the user time.sleep(responseDelay + 2) - return "Mesh-Bot detected a possible request for Emergency Assistance and alerted a wider audience." + return EMERGENCY_RESPONSE def handle_motd(message, message_from_id, isDM): global MOTD diff --git a/modules/settings.py b/modules/settings.py index a791f80..3cb0c8b 100644 --- a/modules/settings.py +++ b/modules/settings.py @@ -6,6 +6,7 @@ import configparser NO_DATA_NOGPS = "No location data: does your device have GPS?" ERROR_FETCHING_DATA = "error fetching data" WELCOME_MSG = 'MeshBot, here for you like a friend who is not. Try sending: ping @foo or, CMD? for more' +EMERGENCY_RESPONSE = "MeshBot detected a possible request for Emergency Assistance and alerted a wider audience." MOTD = 'Thanks for using MeshBOT! Have a good day!' NO_ALERTS = "No weather alerts found."