forked from Itz-JEOL/ROCKY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
35 lines (25 loc) · 1.07 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
from os import getenv
from dotenv import load_dotenv
load_dotenv()
class Config(object):
LOGGER = True
API_ID = int(getenv("API_ID", 6))
API_HASH = getenv("API_HASH", None)
ARQ_API_KEY = "PMPTTD-HOMLMF-SRBHNH-RZMWXL-ARQ"
STRING_SESSION = getenv("STRING_SESSION", None)
SPAMWATCH_API = None
TOKEN = getenv("TOKEN", None)
OWNER_ID = int(getenv("OWNER_ID", "5938660179")) # sᴛᴀʀᴛ @Exon_Robot ᴛʏᴘᴇ /id
OWNER_USERNAME = getenv("OWNER_USERNAME", "jeol_tg")
SUPPORT_CHAT = getenv("SUPPORT_CHAT", "beta_support")
LOG_GROUP_ID = int(getenv("LOG_GROUP_ID", "-1001819078701"))
MONGO_URI = getenv("MONGO_DB_URI")
REDIS_URL = "redis://default:wK6ZCiclq4iQKYpgfY90v6kd6WdPfEwl@redis-10186.c263.us-east-1-2.ec2.cloud.redislabs.com:10186/default"
DATABASE_URL = getenv("DATABASE_URL")
# ɴᴏ ᴇᴅɪᴛ ᴢᴏɴᴇ
if DATABASE_URL.startswith("postgres://"):
DATABASE_URL = DATABASE_URL.replace("postgres://", "postgresql://")
class Production(Config):
LOGGER = True
class Development(Config):
LOGGER = True