60adb8913d
you can costumize the channel & group with var
27 lines
1010 B
Python
27 lines
1010 B
Python
# Copyright (C) 2021 By VeezMusicProject
|
|
|
|
import os
|
|
from os import path, getenv
|
|
from dotenv import load_dotenv
|
|
|
|
if path.exists("local.env"):
|
|
load_dotenv("local.env")
|
|
|
|
load_dotenv()
|
|
|
|
class Veez(object):
|
|
admins = {}
|
|
BOT_TOKEN = getenv("BOT_TOKEN", None)
|
|
CHANNEL = int(os.getenv('CHANNEL', 123456))
|
|
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")
|
|
COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ ! .").split())
|
|
CHANNEL_NAME = getenv("CHANNEL_NAME", "levinachannel")
|
|
GROUP_NAME = getenv("GROUP_NAME", "VeezSupportGroup")
|
|
OWNER_NAME = getenv("OWNER_NAME", "dlwrml")
|