Update mesh_bot.py

This commit is contained in:
SpudGunMan
2024-08-12 02:54:32 -07:00
parent 80da793c8d
commit bdd41c0434
+1 -1
View File
@@ -45,7 +45,7 @@ def auto_response(message, snr, rssi, hop, message_from_id, channel_number, devi
cmds = [] # list to hold the commands found in the message
for key in command_handler:
if key in message_lower:
cmds.append({'key', key, 'index', message_lower.index(key)})
cmds.append({'key': key, 'index': message_lower.index(key)})
if len(cmds) > 0:
# sort the commands by index