forked from TEAM-PYRO-BOTZ/PYRO-RENAME-BOT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
25 lines (13 loc) · 839 Bytes
/
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
import re, os
id_pattern = re.compile(r'^.\d+$')
API_ID = os.environ.get("API_ID", "22980504")
API_HASH = os.environ.get("API_HASH", "b85ecdd508ae39f4e64a08e9a4f9c48d")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "6167410984:AAEdnIXil9ELF8Uxi53b_i3egnxr0NzpVJk")
FORCE_SUB = os.environ.get("FORCE_SUB", "sastatony")
DB_NAME = os.environ.get("DB_NAME","Jatin")
DB_URL = os.environ.get("DB_URL","mongodb+srv://Jatin:[email protected]/?retryWrites=true&w=majority")
FLOOD = int(os.environ.get("FLOOD", "10"))
START_PIC = os.environ.get("START_PIC", "https://te.legra.ph/file/07cfd858071be72375912.jpg")
ADMIN = [int(admin) if id_pattern.search(admin) else admin for admin in os.environ.get("ADMIN", "5366891026").split()]
PORT = os.environ.get('PORT', '8080')
WEBHOOK = bool(os.environ.get("WEBHOOK", True))