From 42eacdb369372d8bbc432be28c618b18ede0bdc5 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Jul 2024 16:31:08 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)