Update mesh_bot.py

This commit is contained in:
SpudGunMan
2024-09-22 22:47:28 -07:00
parent 442f2ff927
commit 1efce62a8a
+4 -1
View File
@@ -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):