2021-09-13 15:14:35 +00:00
|
|
|
import os
|
2021-10-25 22:21:15 +00:00
|
|
|
from os import getenv
|
2021-09-09 01:18:24 +00:00
|
|
|
from dotenv import load_dotenv
|
|
|
|
|
2021-10-25 22:21:15 +00:00
|
|
|
admins = {}
|
2022-02-08 15:13:43 +00:00
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
# client vars
|
2021-10-25 22:21:15 +00:00
|
|
|
API_ID = int(getenv("API_ID"))
|
|
|
|
API_HASH = getenv("API_HASH")
|
2022-02-08 15:13:43 +00:00
|
|
|
BOT_TOKEN = getenv("BOT_TOKEN")
|
|
|
|
SESSION_NAME = getenv("SESSION_NAME", "session")
|
|
|
|
|
|
|
|
# mandatory vars
|
|
|
|
BOT_NAME = getenv("BOT_NAME")
|
2022-01-25 07:25:34 +00:00
|
|
|
OWNER_NAME = getenv("OWNER_NAME")
|
|
|
|
ALIVE_NAME = getenv("ALIVE_NAME")
|
|
|
|
BOT_USERNAME = getenv("BOT_USERNAME")
|
|
|
|
ASSISTANT_NAME = getenv("ASSISTANT_NAME")
|
2022-02-10 05:12:48 +00:00
|
|
|
UPSTREAM_REPO = getenv("UPSTREAM_REPO", "https://github.com/levina-lab/video-stream")
|
2022-02-08 15:13:43 +00:00
|
|
|
UPSTREAM_BRANCH = getenv("UPSTREAM_BRANCH", "main")
|
|
|
|
DURATION_LIMIT = int(getenv("DURATION_LIMIT", "60"))
|
2021-10-25 22:21:15 +00:00
|
|
|
GROUP_SUPPORT = getenv("GROUP_SUPPORT", "VeezSupportGroup")
|
|
|
|
UPDATES_CHANNEL = getenv("UPDATES_CHANNEL", "levinachannel")
|
2022-02-08 15:13:43 +00:00
|
|
|
|
2022-02-10 05:12:48 +00:00
|
|
|
# heroku mandatory vars
|
|
|
|
HEROKU_API_KEY = getenv("HEROKU_API_KEY")
|
|
|
|
HEROKU_APP_NAME = getenv("HEROKU_APP_NAME")
|
|
|
|
|
2022-02-08 15:13:43 +00:00
|
|
|
# database, decorators, handlers mandatory vars
|
|
|
|
MONGODB_URL = getenv("MONGODB_URL")
|
2021-10-25 22:21:15 +00:00
|
|
|
COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ ! .").split())
|
2022-02-09 18:37:31 +00:00
|
|
|
OWNER_ID = list(map(int, getenv("OWNER_ID").split()))
|
|
|
|
SUDO_USERS = list(map(int, getenv("SUDO_USERS").split()))
|
2022-02-08 15:13:43 +00:00
|
|
|
|
|
|
|
# image resources vars
|
2021-10-30 10:37:18 +00:00
|
|
|
IMG_1 = getenv("IMG_1", "https://telegra.ph/file/d6f92c979ad96b2031cba.png")
|
|
|
|
IMG_2 = getenv("IMG_2", "https://telegra.ph/file/6213d2673486beca02967.png")
|
|
|
|
IMG_3 = getenv("IMG_3", "https://telegra.ph/file/f02efde766160d3ff52d6.png")
|
2021-11-26 05:05:53 +00:00
|
|
|
IMG_4 = getenv("IMG_4", "https://telegra.ph/file/be5f551acb116292d15ec.png")
|
2022-02-07 03:12:13 +00:00
|
|
|
IMG_5 = getenv("IMG_5", "https://telegra.ph/file/63300139d232dc12452ab.png")
|
2022-02-08 15:13:43 +00:00
|
|
|
ALIVE_IMG = getenv("ALIVE_IMG", "https://telegra.ph/file/c83b000f004f01897fe18.png")
|