forked from mostafaaziza/Mostafa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
32 lines (27 loc) · 1.18 KB
/
config.py
File metadata and controls
32 lines (27 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
from os import getenv
from dotenv import load_dotenv
if os.path.exists("local.env"):
load_dotenv("local.env")
load_dotenv()
que = {}
SESSION_NAME = getenv("SESSION_NAME", "session")
BOT_TOKEN = getenv("BOT_TOKEN")
BOT_NAME = getenv("BOT_NAME", "ᴜғᴏ ᴍᴜsɪᴄ ʙᴏᴛ")
BG_IMAGE = getenv("BG_IMAGE", "https://telegra.ph/file/385135a287245fb1414a3.jpg")
THUMB_IMG = getenv("THUMB_IMG", "https://telegra.ph/file/385135a287245fb1414a3.jpg")
AUD_IMG = getenv("AUD_IMG", "https://telegra.ph/file/385135a287245fb1414a3.jpg")
QUE_IMG = getenv("QUE_IMG", "https://telegra.ph/file/385135a287245fb1414a3.jpg")
admins = {}
API_ID = int(getenv("API_ID"))
API_HASH = getenv("API_HASH")
BOT_USERNAME = getenv("BOT_USERNAME", "C94_Bot")
ASSISTANT_NAME = getenv("ASSISTANT_NAME", "xU99U")
GROUP_SUPPORT = getenv("GROUP_SUPPORT", "xv00v")
UPDATES_CHANNEL = getenv("UPDATES_CHANNEL", "xv00v")
OWNER_NAME = getenv("OWNER_NAME", "xU99U")
DEV_NAME = getenv("DEV_NAME", "xU99U")
PMPERMIT = getenv("PMPERMIT", None)
DURATION_LIMIT = int(getenv("DURATION_LIMIT", "250"))
COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ ! . #").split())
SUDO_USERS = list(map(int, getenv("SUDO_USERS").split()))