From 746db62fdb02b6b112a944df8d26b23ea5017367 Mon Sep 17 00:00:00 2001 From: Nestpebble Date: Mon, 16 Sep 2024 11:12:32 +0100 Subject: [PATCH] sdfsdf --- mesh_bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index e87aa81..fab664b 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -44,7 +44,7 @@ def auto_response(message, snr, rssi, hop, message_from_id, channel_number, devi "ack": lambda: handle_ack(hop, snr, rssi), "testing": lambda: handle_testing(message, hop, snr, rssi), "test": lambda: handle_testing(message, hop, snr, rssi), - "whoami": lambda: handle_whoami(message_from_id, short_name), + "whoami": lambda: handle_whoami(message_from_id, deviceID), } cmds = [] # list to hold the commands found in the message for key in command_handler: @@ -323,8 +323,8 @@ def handle_testing(message, hop, snr, rssi): else: return "🎙Testing 1,2,3 " + hop -def handle_whoami(message_from_id, short_name): - return "You are " + str(message_from_id) + " AKA " + str({get_name_from_number(nodeid, 'long', nodeInt)}) +def handle_whoami(message_from_id, deviceID): + return "You are " + str(message_from_id) + " AKA " + str({get_name_from_number(message_from_id, 'long', deviceID)}) def onDisconnect(interface): global retry_int1, retry_int2