Update mesh_bot.py

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