mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 01:13:14 +02:00
Update mesh_bot.py
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user