randydev commited on
Commit
ab9cbe3
1 Parent(s): e644a22

Create config.py

Browse files
Files changed (1) hide show
  1. config.py +13 -0
config.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from logger import LOGS
2
+ import os
3
+ from dotenv import load_dotenv
4
+
5
+ load_dotenv()
6
+ API_ID = os.getenv("API_ID")
7
+ API_HASH = os.getenv("API_HASH")
8
+ BOT_TOKEN = os.getenv("BOT_TOKEN")
9
+
10
+ # Validate essential environment variables
11
+ if not all([API_ID, API_HASH, BOT_TOKEN, GOOGLE_API_KEY]):
12
+ LOGS.critical("Missing one or more essential environment variables.")
13
+ exit(1)