Update mesh_bot.py

This commit is contained in:
Nestpebble
2024-09-16 09:56:03 +01:00
committed by GitHub
parent a414a994fb
commit e0d85a65f9
+2 -1
View File
@@ -85,9 +85,10 @@ def handle_motd(message, message_from_id):
motd = message.split("$")[1]
MOTD = motd.rstrip()
return "MOTD Set to: " + MOTD
logger.debug(f"System: node changed MOTD: " {message_from_id})
elif "$" in message:
return "I can't do that for you"
logger.debug(f"System: {message_from_id} tried to change MOTD")
logger.debug(f"System: node tried to change MOTD: " {message_from_id})
else:
return MOTD