From e85982e17c8a30c16c78ebb14b57db7450dea801 Mon Sep 17 00:00:00 2001 From: Nestpebble <116762865+Nestpebble@users.noreply.github.com> Date: Mon, 16 Sep 2024 02:00:04 +0100 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index b8e60d3..6a08211 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -81,10 +81,12 @@ def handle_ping(message, hop, snr, rssi): def handle_motd(message, deviceID): global MOTD - if "$" in message and str(fromNode) in bbs_admin_list: + if "$" in message and str(deviceID) in bbs_admin_list: motd = message.split("$")[1] MOTD = motd.rstrip() return "MOTD Set to: " + MOTD + elif "$" in message and str(deviceID) not in bbs_admin_list: + return "I can't do that for you" else: return MOTD