From 95e6bc120e80910e4df6783f989e348da0d156d4 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 26 Sep 2024 17:32:34 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 6078db2..70dd6c9 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -171,14 +171,13 @@ def handle_wxalert(message_from_id, deviceID, message): def handle_wiki(message, isDM): # location = get_node_location(message_from_id, deviceID) + msg = "Wikipedia search function. \nUsage example:wiki: travelling gnome" if "wiki:" in message.lower(): search = message.split(":")[1] search = search.strip() if search: return get_wikipedia_summary(search) return "Please add a search term example:wiki: travelling gnome" - elif "?" in message and isDM: - msg = "Wikipedia search function. \nUsage example:wiki: travelling gnome" return msg # Runtime Variables for LLM