-
Notifications
You must be signed in to change notification settings - Fork 417
/
config.py
53 lines (51 loc) · 2.25 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
import os
from os import getenv
from dotenv import load_dotenv
if os.path.exists("local.env"):
load_dotenv("local.env")
load_dotenv()
class Config(object):
log = True
APP_ID = getenv("API_ID", "6435225")
API_HASH = getenv("API_HASH", "4e984ea35f854762dcde906dce426c2d")
TOKEN = getenv("TOKEN", "")
OWNER_ID = getenv("OWNER_ID", "")
ASSISTANT_ID = getenv("ASSISTANT_ID", "")
STRING_SESSION = getenv("STRING_SESSION", "") #telethon
OWNER_USERNAME = getenv("OWNER_USERNAME", "")
DB_URI = getenv("DATABASE_URL", "")
DB_URI = DB_URI.replace("postgres", "postgresql")
MESSAGE_DUMP = getenv("MESSAGE_DUMP", "-1001509525202")
GBAN_LOGS = getenv("GBAN_LOGS", "-1001509525202")
SYS_ADMIN = getenv("SYS_ADMIN", "1669178360")
DEV_USERS = getenv("DEV_USERS", "1669178360")
LOAD = getenv("LOAD")
WEBHOOK = False
SPB_MODE = True
DROP_UPDATES = False
DEBUG = False
URL = None
INFOPIC = True
CERT_PATH = None
PORT = 5000
DEL_CMDS = True
STRICT_GBAN = True
BAN_STICKER = getenv("BAN_STICKER", "")
ALLOW_EXCL = True
CUSTOM_CMD = False
CHANNEL = getenv("CHANNEL", "TheUpdatesChannel")
SUPPORT = getenv("SUPPORT", "TheSupportChat")
START_IMG = os.environ.get("START_IMG", "https://telegra.ph/file/35a7b5d9f1f2605c9c0d3.png")
CMD_IMG = os.environ.get("CMD_IMG", "https://telegra.ph/file/66518ed54301654f0b126.png")
CASH_API_KEY = getenv("CASH_API_KEY", "https://www.alphavantage.co/support/#api-key")
TIME_API_KEY = getenv("TIME_API_KEY", "https://timezonedb.com/api")
WALL_API = getenv("WALL_API", "https://wall.alphacoders.com/api.php")
spamwatch_api = getenv("spamwatch_api", "https://t.me/SpamWatchBot")
SPAMMERS = getenv("SPAMMERS", "")
LASTFM_API_KEY = getenv("LASTFM_API_KEY", "https://www.last.fm/api/account/create")
CF_API_KEY = getenv("CF_API_KEY", "coffehouse.intellivoid.net")
BOT_API_URL = getenv("BOT_API_URL", "https://api.telegram.org/bot")
BOT_API_FILE_URL = getenv("BOT_API_FILE_URL", "https://api.telegram.org/file/bot")
SUDO_USERS = list(map(int, getenv("SUDO_USERS", "1669178360").split()))
ZAID_USER = list(map(int, getenv("DEV_USERS", "1669178360").split()))
NO_LOAD = list(map(int, getenv("NO_LOAD", "").split()))