Update mesh_bot.py

This commit is contained in:
Nestpebble
2024-09-25 13:12:08 +01:00
committed by GitHub
parent 241e2258e8
commit 169ea8c233
+2
View File
@@ -88,6 +88,8 @@ def auto_response(message, snr, rssi, hop, pkiStatus, message_from_id, channel_n
if len(cmdHistory) > 50:
cmdHistory.pop(0)
cmdHistory.append({'nodeID': message_from_id, 'cmd': cmds[0]['cmd'], 'time': time.time()})
else:
logger.debug(f"System: Bot detected messageTrap but was not a DM")
# wait a responseDelay to avoid message collision from lora-ack
time.sleep(responseDelay)