some fixes

This commit is contained in:
levina 2021-10-26 05:21:15 +07:00 committed by GitHub
parent 3885a6d599
commit 2d14fb2ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,23 @@
# Copyright (C) 2021 By VeezMusicProject
import os import os
from os import path, getenv from os import getenv
from dotenv import load_dotenv from dotenv import load_dotenv
if path.exists("local.env"): if os.path.exists("local.env"):
load_dotenv("local.env") load_dotenv("local.env")
load_dotenv() load_dotenv()
admins = {}
class Veez(object): SESSION_NAME = getenv("SESSION_NAME", "session")
admins = {} BOT_TOKEN = getenv("BOT_TOKEN")
BOT_TOKEN = getenv("BOT_TOKEN", None) BOT_NAME = getenv("BOT_NAME", "Video Stream")
CHANNEL = int(os.getenv('CHANNEL', 123456)) API_ID = int(getenv("API_ID"))
API_ID = int(getenv("API_ID", "6")) API_HASH = getenv("API_HASH")
API_HASH = getenv("API_HASH", "eb06d4abfb49dc3eeb1aeb98ae0f581e") OWNER_NAME = getenv("OWNER_NAME", "dlwrml")
SESSION_NAME = getenv("SESSION_NAME", None) ALIVE_NAME = getenv("ALIVE_NAME", "Levina")
DURATION_LIMIT = int(getenv("DURATION_LIMIT", "15")) BOT_USERNAME = getenv("BOT_USERNAME", "veezvideobot")
SUDO_USERS = list(map(int, getenv("SUDO_USERS").split())) ASSISTANT_NAME = getenv("ASSISTANT_NAME", "cleo_invida")
ASSISTANT_NAME = getenv("ASSISTANT_NAME", "tg_video_stream") GROUP_SUPPORT = getenv("GROUP_SUPPORT", "VeezSupportGroup")
BOT_USERNAME = getenv("BOT_USERNAME", "veezvidstreambot") UPDATES_CHANNEL = getenv("UPDATES_CHANNEL", "levinachannel")
COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ ! .").split()) SUDO_USERS = list(map(int, getenv("SUDO_USERS").split()))
CHANNEL_NAME = getenv("CHANNEL_NAME", "levinachannel") COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ ! .").split())
GROUP_NAME = getenv("GROUP_NAME", "VeezSupportGroup") ALIVE_IMG = getenv("ALIVE_IMG", "https://telegra.ph/file/c83b000f004f01897fe18.png")
OWNER_NAME = getenv("OWNER_NAME", "dlwrml")