-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
66 lines (54 loc) · 1.81 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
from os import getenv
from dotenv import load_dotenv
load_dotenv()
# VARS
get_queue = {}
BOT_TOKEN = getenv("BOT_TOKEN")
API_ID = int(getenv("API_ID", ""))
API_HASH = getenv("API_HASH")
DURATION_LIMIT_MIN = int(getenv("DURATION_LIMIT", "10"))
ASSISTANT_PREFIX = list(getenv("ASSISTANT_PREFIX", ".").split())
MONGO_DB_URI = getenv("MONGO_DB_URI")
SUDO_USERS = list(map(int, getenv("SUDO_USERS", "").split()))
OWNER_ID = list(map(int, getenv("OWNER_ID", "").split()))
LOG_GROUP_ID = int(getenv("LOG_GROUP_ID", ""))
MUSIC_BOT_NAME = getenv("MUSIC_BOT_NAME")
HEROKU_API_KEY = getenv("HEROKU_API_KEY")
HEROKU_APP_NAME = getenv("HEROKU_APP_NAME")
BOT_USERNAME = getenv("BOT_USERNAME")
UPSTREAM_REPO = getenv(
"UPSTREAM_REPO", "https://github.com/NotReallyShikhar/YukkiMusicBot"
)
UPSTREAM_BRANCH = getenv("UPSTREAM_BRANCH", "master")
if str(getenv("SUPPORT_CHANNEL")).strip() == "":
SUPPORT_CHANNEL = None
else:
SUPPORT_CHANNEL = str(getenv("SUPPORT_CHANNEL"))
if str(getenv("SUPPORT_GROUP")).strip() == "":
SUPPORT_GROUP = None
else:
SUPPORT_GROUP = str(getenv("SUPPORT_GROUP"))
if str(getenv("STRING_SESSION1")).strip() == "":
STRING1 = str(None)
else:
STRING1 = str(getenv("STRING_SESSION1"))
if str(getenv("STRING_SESSION2")).strip() == "":
STRING2 = str(None)
else:
STRING2 = str(getenv("STRING_SESSION2"))
if str(getenv("STRING_SESSION3")).strip() == "":
STRING3 = str(None)
else:
STRING3 = str(getenv("STRING_SESSION3"))
if str(getenv("STRING_SESSION4")).strip() == "":
STRING4 = str(None)
else:
STRING4 = str(getenv("STRING_SESSION4"))
if str(getenv("STRING_SESSION5")).strip() == "":
STRING5 = str(None)
else:
STRING5 = str(getenv("STRING_SESSION5"))
if str(getenv("LOG_SESSION")).strip() == "":
LOG_SESSION = str(None)
else:
LOG_SESSION = str(getenv("LOG_SESSION"))