forked from AbirHasan2005/Rename-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configs.py
25 lines (21 loc) · 846 Bytes
/
configs.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
# (c) @AbirHasan2005
import os
import logging
logging.basicConfig(
format='%(name)s - %(levelname)s - %(message)s',
handlers=[logging.FileHandler('log.txt'),
logging.StreamHandler()],
level=logging.INFO
)
class Config(object):
API_ID = int(os.environ.get("API_ID", ""))
API_HASH = os.environ.get("API_HASH", "")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
DOWNLOAD_DIR = os.environ.get("DOWNLOAD_DIR", "./downloads")
LOGGER = logging
OWNER_ID = int(os.environ.get("OWNER_ID", 1445283714))
PRO_USERS = list(set(int(x) for x in os.environ.get("PRO_USERS", "0").split()))
PRO_USERS.append(OWNER_ID)
MONGODB_URI = os.environ.get("MONGODB_URI", "")
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", "-100"))
BROADCAST_AS_COPY = bool(os.environ.get("BROADCAST_AS_COPY", "False"))