Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-19 21:54:36 -07:00
parent 1d3385861f
commit 9aeb087f78
-3
View File
@@ -79,17 +79,14 @@ def auto_response(message,snr,rssi,hop,message_from_id):
bot_response = "Last 5 nodes heard: " + str(get_node_list())
elif "whereami" in message.lower():
location = get_node_location(message_from_id)
print (f"Using Reported Location: {location}")
where = where_am_i(str(location[0]),str(location[1]))
bot_response = where
elif "tide" in message.lower():
location = get_node_location(message_from_id)
print (f"Using Reported Location: {location}")
tide = get_tide(str(location[0]),str(location[1]))
bot_response = tide
elif "moon" in message.lower():
location = get_node_location(message_from_id)
print (f"Using Reported Location: {location}")
moon = get_moon(str(location[0]),str(location[1]))
bot_response = moon
else: