-
Notifications
You must be signed in to change notification settings - Fork 215
/
config.py
38 lines (28 loc) · 1.13 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
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"
SPAMWATCH_API = None
TOKEN = getenv("TOKEN", None)
OWNER_ID = int(getenv("OWNER_ID", 5938660179))
OWNER_USERNAME = getenv("OWNER_USERNAME", "AshokShau")
SUPPORT_CHAT = getenv("SUPPORT_CHAT", "AbishnoiMF")
LOGGER_ID = int(getenv("LOGGER_ID", "-1001819078701"))
MONGO_URI = getenv(
"MONGO_DB_URI",
"mongodb+srv://public:abishnoimf@cluster0.rqk6ihd.mongodb.net/?retryWrites=true&w=majority",
)
DB_NAME = getenv("DB_NAME", "ExonRobot")
REDIS_URL = "redis://default:wK6ZCiclq4iQKYpgfY90v6kd6WdPfEwl@redis-10186.c263.us-east-1-2.ec2.cloud.redislabs.com:10186/default"
DATABASE_URL = getenv("DATABASE_URL", None)
# ɴᴏ ᴇᴅɪᴛ ᴢᴏɴᴇ
if DATABASE_URL.startswith("postgres://"):
DATABASE_URL = DATABASE_URL.replace("postgres://", "postgresql://")
class Production(Config):
LOGGER = True
class Development(Config):
LOGGER = True