mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 12:24:51 +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
|
# Required ENV
|
||||||
TELEGRAM_API = environ.get("TELEGRAM_API", "")
|
API_ID = environ.get("API_ID", "")
|
||||||
if not TELEGRAM_API:
|
if not API_ID:
|
||||||
LOGGER.error("TELEGRAM_API variable is missing! Exiting now")
|
LOGGER.error("API_ID variable is missing! Exiting now")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
TELEGRAM_API = int(TELEGRAM_API)
|
API_ID = int(API_ID)
|
||||||
TELEGRAM_HASH = environ.get("TELEGRAM_HASH", "")
|
API_HASH = environ.get("API_HASH", "")
|
||||||
if not TELEGRAM_HASH:
|
if not API_HASH:
|
||||||
LOGGER.error("TELEGRAM_HASH variable is missing! Exiting now")
|
LOGGER.error("API_HASH variable is missing! Exiting now")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
BOT_TOKEN = environ.get("BOT_TOKEN", "")
|
BOT_TOKEN = environ.get("BOT_TOKEN", "")
|
||||||
if not BOT_TOKEN:
|
if not BOT_TOKEN:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue