-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
47 lines (43 loc) · 1.92 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
import os
from os import getenv
from dotenv import load_dotenv
from helpers.uptools import fetch_heroku_git_url
if os.path.exists("local.env"):
load_dotenv("local.env")
load_dotenv()
que = {}
admins = {}
SESSION_NAME = getenv("SESSION_NAME", "session")
BOT_TOKEN = getenv("BOT_TOKEN")
BOT_NAME = getenv("BOT_NAME", "Yhuri Music")
BG_IMAGE = getenv("BG_IMAGE", "https://telegra.ph/file/f2290b5347bd7d159901d.jpg")
THUMB_IMG = getenv("THUMB_IMG", "https://telegra.ph/file/64f10a819ec0d991b1b84.jpg")
AUD_IMG = getenv("AUD_IMG", "https://telegra.ph/file/31b59895e735e68a95129.jpg")
QUE_IMG = getenv("QUE_IMG", "https://telegra.ph/file/a7baf433093e1e9429b61.jpg")
API_ID = int(getenv("API_ID"))
API_HASH = getenv("API_HASH")
BOT_USERNAME = getenv("BOT_USERNAME", "yhuritest101_bot")
ASSISTANT_NAME = getenv("ASSISTANT_NAME", "yhuritest_bot")
GROUP_SUPPORT = getenv("GROUP_SUPPORT", "YhurimusicbotGC")
UPDATES_CHANNEL = getenv("UPDATES_CHANNEL", "Yhurimusicchannel")
# isi dengan username kamu tanpa simbol @
OWNER_NAME = getenv("OWNER_NAME", "jfhoto")
PMPERMIT = getenv("PMPERMIT", "ENABLE")
# fill with your id as the owner of the bot
OWNER_ID = int(os.environ.get("OWNER_ID"))
DATABASE_URL = os.environ.get("DATABASE_URL") # fill with your mongodb url
# make a private channel and get the channel id
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL"))
# just fill with True or False (optional)
BROADCAST_AS_COPY = bool(os.environ.get("BROADCAST_AS_COPY", "False"))
DURATION_LIMIT = int(getenv("DURATION_LIMIT", "60"))
COMMAND_PREFIXES = list(getenv("COMMAND_PREFIXES", "/ ! .").split())
SUDO_USERS = list(map(int, getenv("SUDO_USERS").split()))
# UPDATER CONFIG
U_BRANCH = "main"
HEROKU_APP_NAME = os.environ.get("HEROKU_APP_NAME", None)
HEROKU_API_KEY = os.environ.get("HEROKU_API_KEY", None)
UPSTREAM_REPO = os.environ.get(
"UPSTREAM_REPO", "https://github.com/Yhuri101/YhuriXmusic1"
)
HEROKU_URL = fetch_heroku_git_url(HEROKU_API_KEY, HEROKU_APP_NAME)