From efd6b882d1a12ed7a21010ec518d51e37198f150 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 8 Oct 2024 23:00:34 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 9dc45bb..eedb7ca 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -117,13 +117,13 @@ def handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM): type = '' if "ping" in message.lower(): - msg = "🏓PONG, " - type = "🏓PING" + msg = "🏓PONG\n" + type = "🏓PING\n" elif "test" in message.lower() or "testing" in message.lower(): - msg = random.choice(["🎙Testing 1,2,3\n", "🎙Testing, ",\ - "🎙Testing, testing, ",\ - "🎙Ah-wun, ah-two... ", "🎙Is this thing on? ",\ - "🎙Roger that! ",]) + 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",]) type = "🎙TEST" elif "ack" in message.lower(): msg = random.choice(["✋ACK-ACK!\n", "✋Ack to you!\n"]) @@ -174,6 +174,7 @@ def handle_cq(message_from_id, deviceID, channel_number): elif deviceID == 2: myname = get_name_from_number(myNodeNum2, 'short', 2) msg = f"QSP QSL OM DE {myname} K" + return msg def handle_motd(message, message_from_id, isDM): global MOTD