diff --git a/mesh_bot.py b/mesh_bot.py index 8d91d2b..74e127f 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -150,7 +150,7 @@ llmTotalRuntime = [] llmLocationTable = [{'nodeID': 1234567890, 'location': 'No Location'},] def handle_llm(message_from_id, channel_number, deviceID, message, publicChannel): - global llmRunCounter, llmLocationTable, llmTotalRuntime, location_enabled, antiSpam, useDMForResponse, NO_DATA_NOGPS + global llmRunCounter, llmLocationTable, llmTotalRuntime, cmdHistory location_name = 'no location provided' if location_enabled: @@ -235,6 +235,9 @@ def handle_llm(message_from_id, channel_number, deviceID, message, publicChannel llmRunCounter += 1 llmTotalRuntime.append(end - start) + # append the command to the cmdHistory list user touched the bot llm + cmdHistory.append({'nodeID': message_from_id, 'cmd': 'llm-use', 'time': time.time()}) + return response def handleDopeWars(nodeID, message, rxNode):