From c03375c7f0d8cb46136a51c99230983b849ad69f Mon Sep 17 00:00:00 2001 From: Nestpebble <116762865+Nestpebble@users.noreply.github.com> Date: Mon, 16 Sep 2024 09:04:28 +0100 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 8477bc4..348c378 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -79,13 +79,13 @@ def handle_ping(message, hop, snr, rssi): else: return "🏓PONG, " + hop -def handle_motd(message, deviceID): +def handle_motd(message, message_from_id): global MOTD - if "$" in message and str(deviceID) in bbs_admin_list: + if "$" in message and str(message_from_id) in bbs_admin_list: motd = message.split("$")[1] MOTD = motd.rstrip() return "MOTD Set to: " + MOTD - elif "$" in message and not str(deviceID) in bbs_admin_list: + elif "$" in message and not str(message_from_id) in bbs_admin_list: return "I can't do that for you" else: return MOTD