mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-06-27 13:31:00 +02:00
enhance emergencyResponder
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user