From db9b89d0acdca2e1b8bc66833e9d59298cfa9c6c Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 2 Jan 2025 22:08:59 -0800 Subject: [PATCH] Update pong_bot.py --- pong_bot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 *