diff --git a/mesh_bot.py b/mesh_bot.py index e18c244..a3ec6ba 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -103,11 +103,11 @@ def auto_response(message, snr, rssi, hop, message_from_id): elif "wxalert" in message.lower(): location = get_node_location(message_from_id) weatherAlert = getActiveWeatherAlertsDetail(str(location[0]),str(location[1])) - bot_response = weatherAlert[0] + bot_response = weatherAlert elif "wxa" in message.lower(): location = get_node_location(message_from_id) weatherAlert = getWeatherAlerts(str(location[0]),str(location[1])) - bot_response = weatherAlert[0] + bot_response = weatherAlert elif "wxc" in message.lower(): location = get_node_location(message_from_id) weather = get_weather(str(location[0]),str(location[1]),1)