From d6ec1f9251236c493625d30f771b59cc9e8824c1 Mon Sep 17 00:00:00 2001
From: Firepup Sixfifty <firepyp650@gmail.com>
Date: Tue, 4 Jun 2024 16:08:13 -0500
Subject: [PATCH] Remove debug line, add checks for env vars

---
 main.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.py b/main.py
index 5b45166..9e0ba3a 100644
--- a/main.py
+++ b/main.py
@@ -10,7 +10,9 @@ fp.replitCursor = fp.bcolors.REPLIT + ">>>" + fp.bcolors.RESET
 
 load_dotenv()
 
-print(dir(fp))
+for requiredVar in ["SLACK_BOT_TOKEN", "SLACK_APP_TOKEN"]:
+    if not os.environ.get(requiredVar):
+        raise ValueError(f'Missing required environment variable "{requiredVar}". Please create a .env file in the same directory as this script and define it.')
 
 # Initializes your app with your bot token and socket mode handler
 app = App(token=os.environ.get("SLACK_BOT_TOKEN"))