-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfo.py
87 lines (65 loc) · 2.45 KB
/
info.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import re
from os import environ
# Bot information
SESSION = environ.get('SESSION', 'Media_search')
USER_SESSION = environ.get('USER_SESSION', 'User_Bot')
API_ID = int(environ['API_ID'])
API_HASH = environ['API_HASH']
BOT_TOKEN = environ['BOT_TOKEN']
# Bot settings
MAX_RESULTS = int(environ.get('MAX_RESULTS', 6))
CACHE_TIME = int(environ.get('CACHE_TIME', 300))
USE_CAPTION_FILTER = bool(environ.get('USE_CAPTION_FILTER', False))
# Admins, Channels & Users
ADMINS = [int(admin) if re.search('^\d+$', admin) else admin for admin in environ['ADMINS'].split()]
CHANNELS = [int(ch) if re.search('^.\d+$', ch) else ch for ch in environ['CHANNELS'].split()]
auth_users = [int(user) if re.search('^\d+$', user) else user for user in environ['AUTH_USERS'].split()]
AUTH_USERS = (auth_users + ADMINS) if auth_users else []
# MongoDB information
DATABASE_URI = environ['DATABASE_URI']
DATABASE_NAME = environ['DATABASE_NAME']
COLLECTION_NAME = environ.get('COLLECTION_NAME', 'Telegram_files')
# Messages
START_MSG = """
**Halooo! I'm @NinjaNaveen's Config Searcher Bot**
Here you can find all of my Configs for Openbullet in inline mode.
I made it easier for you to find the config you need❣️**
☑️For Requesting Configs and For Reporting Dead Configs in this Bot, Kindly DM @NinjaNaveenBot**
"""
ADMINHELP_MSG = """
/channel
/helpadmin
/total
/logger
/delete
"""
INFO_MSG = """
**Hey there!
I'm made to make it easier for you to find the config you need❣️
Admins:-
@NinjaNaveen
@YourDaddy9999
@Luciferr_xD
Credits for Configs:-
@YourDaddy9999
@Luciferr_xD
@Lucif3rHun
@Python_xD
@Tonami_YT
@sylas_T_H_P
@Guptaajiii
☑️For Requesting Configs and For Reporting Dead Configs in this Bot, Kindly DM @NinjaGiveaways_Bot**
"""
HELP_MSG = """
**🌀 How to Use Me?
🔰Type my Username @NinjaNaveenConfigsBot and you can type the desired config you need.
Example:-**
@NinjaNaveenConfigsBot Heroku - Will give Heroku Config
**🔰You can either Type the Name of the Site or you can Use Keywords
Example:- **
@NinjaNaveenConfigsBot Indian - Will show list of Indian sites configs
@NinjaNaveenConfigsBot Streaming - Will show list of Streaming sites configs
@NinjaNaveenConfigsBot Proxyless - Will show list of Proxyless configs
**☑️ For Requesting Configs and For Reporting Dead Configs in this Bot, Kindly DM @NinjaNaveenBot**
"""
SHARE_BUTTON_TEXT = "Yo, Checkout {username}. There you can find all of @NinjaNaveen's Configs for Openbullet in inline mode."