mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 17:32:52 +02:00
szadsad
This commit is contained in:
@@ -104,6 +104,7 @@ def handle_ping(message, hop, snr, rssi, isDM):
|
||||
|
||||
if "ping" in message:
|
||||
msg = msg + "🏓PONG, "
|
||||
logger.debug(msg)
|
||||
elif "test" in message or "testing" in message:
|
||||
msg = msg + random.choice(["🎙Testing 1,2,3 \n", "🎙Testing \n",\
|
||||
"🎙Testing, testing \n",\
|
||||
@@ -112,16 +113,22 @@ def handle_ping(message, hop, snr, rssi, isDM):
|
||||
elif "ack" in message:
|
||||
msg = msg + "✋ACK-ACK!, n"
|
||||
|
||||
logger.debug(msg)
|
||||
|
||||
if hop == "Direct":
|
||||
msg = msg + f"SNR:{snr} RSSI:{rssi}"
|
||||
else:
|
||||
msg = msg + hop
|
||||
|
||||
logger.debug(msg)
|
||||
|
||||
if "@" in message:
|
||||
msg = msg + " @" + message.split("@")[1]
|
||||
elif "#" in message:
|
||||
msg = msg + " #" + message.split("#")[1]
|
||||
|
||||
logger.debug(msg)
|
||||
|
||||
return msg
|
||||
|
||||
def handle_motd(message, message_from_id, isDM):
|
||||
|
||||
Reference in New Issue
Block a user