From 404f84f39c393f2bc866ce9917f32d0e534fe29c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 31 Oct 2025 12:39:19 -0700 Subject: [PATCH] echo motd --- mesh_bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesh_bot.py b/mesh_bot.py index cb7e5d2..4c5d7e6 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -410,6 +410,8 @@ def handle_echo(message, message_from_id, deviceID, isDM, channel_number): else: new_words.append(w) msg_to_echo = " ".join(new_words).strip() + # Replace motd/MOTD with the current MOTD from settings + msg_to_echo = " ".join(my_settings.MOTD if w.lower() == "motd" else w for w in msg_to_echo.split()) # Send echo to specified channel/device logger.debug(f"System: Admin Echo to channel {target_channel} device {target_device} message: {msg_to_echo}")