-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
40 lines (36 loc) · 1.82 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
# MIT License
# Copyright (c) 2022 Muhammed
import os, re
search = re.compile(r'^.\d+$')
def is_enabled(value, default):
if value.lower() in ["true", "yes", "1", "enable", "y"]:
return True
elif value.lower() in ["false", "no", "0", "disable", "n"]:
return False
else:
return default
# Creator
CREATOR_NAME = os.environ.get("CREATOR_NAME", "𝙼𝚄𝙷𝙰𝙼𝙼𝙴𝙳")
CREATOR_USERNAME = os.environ.get("CREATOR_USERNAME", "PR0FESS0_99")
# Account
API_HASH = os.environ.get("API_HASH", "5b1d0992294a67cb54512a4fafeb0c88")
API_ID = os.environ.get("API_ID", "6170803")
# About Bot
BOT_TOKEN = os.environ.get("BOT_TOKEN", "1905228806:AAH2iahJcg5J6bqpcW11jB9KajwHbIjaslGTY")
PICS = os.environ.get("PICS", "https://telegra.ph/file/034d53b5ed1d920ecab8b.jpg")
# Database
DATABASE_NAME = os.environ.get("DATABASE_NAME", "LuciferMoringstar-Robot")
DATABASE_URI = os.environ.get("DATABASE_URI", "mongodb+srv://{Username}:{Passs}@cluster0.{clusterID}.mongodb.net/myFirstDatabase?retryWrites=true{iD}=majority")
# Chats & Users
ADMINS = os.environ.get("ADMINS", "2028425293 1637186875")
SUPPORT_CHAT = os.environ.get("SUPPORT_CHAT", "Mo_Tech_Group")
AUTH_CHANNEL = os.environ.get("AUTH_CHANNEL", "-1001685151224")
CHANNELS = [int(ch) if search.search(ch) else ch for ch in os.environ.get("CHANNELS", "-1001784382279").split()]
LOG_CHANNEL = os.environ.get("LOG_CHANNEL", "-1001590063851")
GET_FILECHANNEL = os.environ.get("GET_FILECHANNEL", "-1001570208190")
FILTER_DEL_SECOND = int(os.environ.get("FILTER_DEL_SECOND", "600"))
# AutoFilter
AUTH_GROUPS = os.environ.get("AUTH_GROUPS", "")
AUTH_USER = [int(user) if search.search(user) else user for user in os.environ.get('AUTH_USER', '').split()]
FILTER_BUTTONS = os.environ.get("FILTER_BUTTONS", "10")
PROTECT_FILES = is_enabled((os.environ.get('PROTECT_FILES', "True")), True)