diff --git a/pong_bot.py b/pong_bot.py index 24c2c68..b0c4fe8 100755 --- a/pong_bot.py +++ b/pong_bot.py @@ -2,9 +2,15 @@ # Meshtastic Autoresponder PONG 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 pong' using a virtual environment.") + exit(1) + import asyncio import time # for sleep, get some when you can :) -from pubsub import pub # pip install pubsub or use launch.sh for venv +import random from modules.log import * from modules.system import *