From 80da793c8dbe600c40c588a11058746b7e24a03b Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 12 Aug 2024 02:53:24 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 159c597..f904aa0 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -49,7 +49,7 @@ def auto_response(message, snr, rssi, hop, message_from_id, channel_number, devi if len(cmds) > 0: # sort the commands by index - cmds.sort(key=lambda x: x[3]) + cmds.sort(key=lambda x: x['index']) logger.debug(f"System: Bot Detected: {cmds}") # run the last command found in the message bot_response = command_handler[cmds[0]]()