mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-01 02:24:52 +00:00
Forgot this
This commit is contained in:
parent
d367c04050
commit
d5774c8b54
1 changed files with 7 additions and 7 deletions
|
|
@ -10,15 +10,15 @@ LOGGER = getLogger("MissKaty")
|
|||
|
||||
|
||||
# Required ENV
|
||||
TELEGRAM_API = environ.get("TELEGRAM_API", "")
|
||||
if not TELEGRAM_API:
|
||||
LOGGER.error("TELEGRAM_API variable is missing! Exiting now")
|
||||
API_ID = environ.get("API_ID", "")
|
||||
if not API_ID:
|
||||
LOGGER.error("API_ID variable is missing! Exiting now")
|
||||
sys.exit(1)
|
||||
else:
|
||||
TELEGRAM_API = int(TELEGRAM_API)
|
||||
TELEGRAM_HASH = environ.get("TELEGRAM_HASH", "")
|
||||
if not TELEGRAM_HASH:
|
||||
LOGGER.error("TELEGRAM_HASH variable is missing! Exiting now")
|
||||
API_ID = int(API_ID)
|
||||
API_HASH = environ.get("API_HASH", "")
|
||||
if not API_HASH:
|
||||
LOGGER.error("API_HASH variable is missing! Exiting now")
|
||||
sys.exit(1)
|
||||
BOT_TOKEN = environ.get("BOT_TOKEN", "")
|
||||
if not BOT_TOKEN:
|
||||
|
|
|
|||
Loading…
Reference in a new issue