From 5f822a6230e50f4c345141e8b9b46edbc9a4ecd6 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 4 Sep 2024 22:27:15 -0700 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesh_bot.py b/mesh_bot.py index d108714..aad1a71 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -139,14 +139,18 @@ def handle_llm(message_from_id, channel_number, deviceID, message, publicChannel if averageRuntime > 25: msg = f"Please wait, average query time is: {int(averageRuntime)} seconds" if channel_number == publicChannel: + # send via DM send_message(msg, channel_number, message_from_id, deviceID) else: + # send via channel send_message(msg, channel_number, 0, deviceID) else: msg = "Please wait, response could take 3+ minutes. Fund the SysOp's GPU budget!" if channel_number == publicChannel: + # send via DM send_message(msg, channel_number, message_from_id, deviceID) else: + # send via channel send_message(msg, channel_number, 0, deviceID) start = time.time()