From 477f2141d7c56ed61ea841d0acdce5e8384134e3 Mon Sep 17 00:00:00 2001 From: Nestpebble Date: Thu, 26 Sep 2024 22:57:20 +0100 Subject: [PATCH] sdfsdf --- mesh_bot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 1e76231..283d864 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -507,8 +507,7 @@ def handle_bbsdelete(message, message_from_id): def handle_messages(message, deviceID, channel_number, msg_history, publicChannel, isDM): if "?" in message and isDM: - msg = "Command returns the last " + str(storeFlimit) + " messages sent on a channel." - return msg + return message.split("?")[0].title() + " command returns the last " + str(storeFlimit) + " messages sent on a channel." else: response = "" for msgH in msg_history: @@ -526,7 +525,7 @@ def handle_sun(message_from_id, deviceID, channel_number): def handle_lheard(message, nodeid, deviceID, isDM): if "?" in message and isDM: - return message.split("?")[0].title() + " command returns a list of nodes that have been heard recently" + return message.split("?")[0].title() + " command returns a list of the last " + storeFlimit + " nodes that have been heard recently" else: # display last heard nodes add to response