video-stream/config.py

24 lines
833 B
Python
Raw Normal View History

2021-09-13 23:09:26 +00:00
# Copyright (C) 2021 By VeezMusicProject
2021-09-13 15:14:35 +00:00
import os
2021-09-09 01:18:24 +00:00
from os import path, getenv
from dotenv import load_dotenv
if path.exists("local.env"):
load_dotenv("local.env")
load_dotenv()
2021-09-12 04:37:21 +00:00
class Veez(object):
admins = {}
BOT_TOKEN = getenv("BOT_TOKEN", None)
2021-09-13 14:50:54 +00:00
CHANNEL = int(os.getenv('CHANNEL', 123456))
2021-09-12 04:37:21 +00:00
API_ID = int(getenv("API_ID", "6"))
API_HASH = getenv("API_HASH", "eb06d4abfb49dc3eeb1aeb98ae0f581e")
SESSION_NAME = getenv("SESSION_NAME", None)
DURATION_LIMIT = int(getenv("DURATION_LIMIT", "15"))
SUDO_USERS = list(map(int, getenv("SUDO_USERS").split()))
ASSISTANT_NAME = getenv("ASSISTANT_NAME", "tg_video_stream")
BOT_USERNAME = getenv("BOT_USERNAME", "veezvidstreambot")
2021-09-13 14:50:54 +00:00
COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ ! .").split())