From d7af337a63c725e06cb1e644e8dc1453e9e404ac Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 2 Jan 2025 22:06:00 -0800 Subject: [PATCH] enhance --- mesh_bot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mesh_bot.py b/mesh_bot.py index 39d0dc2..d2ff88a 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -2,10 +2,15 @@ # Meshtastic Autoresponder MESH Bot # K7MHI Kelly Keeton 2024 +try: + from pubsub import pub +except ImportError: + print(f"Important dependencies are not met, try install.sh\n\n Did you mean to './launch.sh mesh' using a virtual environment.") + exit(1) + import asyncio import time # for sleep, get some when you can :) import random -from pubsub import pub # pip install pubsub or use launch.sh for venv from modules.log import * from modules.system import *