-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
50 lines (46 loc) · 2.11 KB
/
config.py
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# AlvinMusicRobot- Telegram bot project
# Copyright (C) 2021 Roj Serbest
# Copyright (C) 2021 Inuka Asith
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Modified by alvin_junior
import os
from os import path
from os import getenv
from dotenv import load_dotenv
if os.path.exists("local.env"):
load_dotenv("local.env")
que = {}
SESSION_NAME = getenv("SESSION_NAME", "session")
BOT_TOKEN = getenv("BOT_TOKEN")
BOT_NAME = getenv("BOT_NAME")
UPDATES_CH = getenv("UPDATES_CHANNEL", "alvin_image_editor")
UPDATES_MODE = getenv("UPDATES_MODE", "Updates")
BG_IMAGE = getenv("BG_IMAGE", "https://telegra.ph/file/b623ab3cd8caef9efff2b.jpg")
admins = {}
API_ID = int(getenv("API_ID", ""))
API_HASH = getenv("API_HASH")
BOT_USERNAME = getenv("BOT_USERNAME")
ASSISTANT_NAME = getenv("ASSISTANT_NAME", "")
SUPPORT_GRP = getenv("SUPPORT_GROUP", "alvin_image_editor")
SUPPORT_MODE = getenv("SUPPORT_MODE", "Support")
PROJECT_NAME = getenv("PROJECT_NAME", "Alvin Music")
SOURCE_CODE = getenv("SOURCE_CODE", "github.com/fahrial2310/Music-TeleBot-IDN")
DURATION_LIMIT = int(getenv("DURATION_LIMIT", "15"))
ARQ_API_KEY = getenv("ARQ_API_KEY", None)
PMPERMIT = getenv("PMPERMIT", None)
LOG_GRP = getenv("LOG_GRP", None)
COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ !").split())
SUDO_USERS = list(map(int, getenv("SUDO_USERS").split()))
CREATOR_NAME = getenv("CREATOR_NAME", "Muhammad Fahri")
CREATOR_USERNAME = getenv("CREATOR_USERNAME", "alvin_junior")
OWNER_MODE = getenv("OWNER_MODE", "Creator")