enhance emergencyResponder

This commit is contained in:
SpudGunMan
2024-12-08 11:32:30 -08:00
parent 402c58c111
commit 0615733445
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -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."