From 11eee911ca7dba00450b28c53ffd1e5be0eceb2b Mon Sep 17 00:00:00 2001 From: Nestpebble Date: Thu, 26 Sep 2024 21:54:47 +0100 Subject: [PATCH] sdfsdf --- mesh_bot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 2d43a30..a8528d6 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -98,20 +98,20 @@ def auto_response(message, snr, rssi, hop, pkiStatus, message_from_id, channel_n return bot_response def handle_ping(message, hop, snr, rssi, isDM): - msg = "" if "?" in message and isDM: return message.split("?")[0].title() + " command returns SNR and RSSI, or hopcount from your message. Try adding e.g. @place or #1/3 to your message" - + if "ping" in message: - msg = msg + "🏓PONG, " - logger.debug(msg) + msg = "🏓PONG, " elif "test" in message or "testing" in message: msg = msg + random.choice(["🎙Testing 1,2,3 \n", "🎙Testing \n",\ "🎙Testing, testing \n",\ "🎙Ah-wun, ah-two... \n", "🎙Is this thing on? \n",\ "🎙Roger that. \n", "Ack to you! \n"]) elif "ack" in message: - msg = msg + "✋ACK-ACK!, n" + msg += "✋ACK-ACK!, n" + else: + msg = "" logger.debug(msg)