-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy pathconfig.py
More file actions
99 lines (61 loc) · 3.15 KB
/
config.py
File metadata and controls
99 lines (61 loc) · 3.15 KB
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
88
89
90
91
92
93
94
95
96
97
98
import re, os, time
id_pattern = re.compile(r'^.\d+$')
class Config(object):
# pyro client config
API_ID = os.environ.get("API_ID", "")
API_HASH = os.environ.get("API_HASH", "")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "")
# database config
DB_NAME = os.environ.get("DB_NAME","madflixbotz")
DB_URL = os.environ.get("DB_URL","")
# other configs
BOT_UPTIME = time.time()
START_PIC = os.environ.get("START_PIC", "https://graph.org/file/4b306f4b15c23a8f22e58.jpg")
ADMIN = [int(admin) if id_pattern.search(admin) else admin for admin in os.environ.get('ADMIN', '').split()]
FORCE_SUB = os.environ.get("FORCE_SUB", "")
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", ""))
# wes response configuration
WEBHOOK = bool(os.environ.get("WEBHOOK", "True"))
class Txt(object):
# part of text configuration
START_TXT = """Hello {}
➻ This Is An Advanced And Yet Powerful Rename Bot.
➻ Using This Bot You Can Auto Rename Of Your Files.
➻ This Bot Also Supports Custom Thumbnail And Custom Caption.
➻ Use /tutorial Command To Know How To Use Me.
<b>Bot Is Made By @Madflix_Bots</b>"""
FILE_NAME_TXT = """<b><u>SETUP AUTO RENAME FORMAT</u></b>
Use These Keywords To Setup Custom File Name
✓ episode :- To Replace Episode Number
✓ quality :- To Replace Video Resolution
<b>➻ Example :</b> <code> /autorename Naruto Shippuden S02 - EPepisode - quality [Dual Audio] - @Madflix_Bots </code>
<b>➻ Your Current Auto Rename Format :</b> <code>{format_template}</code> """
ABOUT_TXT = f"""<b>🤖 My Name :</b> <a href='https://t.me/AutoRenameXBot'>Auto Rename Bot ⚡</a>
<b>📝 Language :</b> <a href='https://python.org'>Python 3</a>
<b>📚 Library :</b> <a href='https://pyrogram.org'>Pyrogram 2.0</a>
<b>🚀 Server :</b> <a href='https://heroku.com'>Heroku</a>
<b>📢 Channel :</b> <a href='https://t.me/Madflix_Bots'>Madflix Botz</a>
<b>🧑💻 Developer :</b> <a href='https://t.me/CallAdminRobot'>Jishu Developer</a>
<b>♻️ Bot Made By :</b> @Madflix_Bots"""
THUMBNAIL_TXT = """<b><u>🖼️ HOW TO SET THUMBNAIL</u></b>
⦿ You Can Add Custom Thumbnail Simply By Sending A Photo To Me....
⦿ /viewthumb - Use This Command To See Your Thumbnail
⦿ /delthumb - Use This Command To Delete Your Thumbnail"""
CAPTION_TXT = """<b><u>📝 HOW TO SET CAPTION</u></b>
⦿ /set_caption - Use This Command To Set Your Caption
⦿ /see_caption - Use This Command To See Your Caption
⦿ /del_caption - Use This Command To Delete Your Caption"""
PROGRESS_BAR = """\n
<b>📁 Size</b> : {1} | {2}
<b>⏳️ Done</b> : {0}%
<b>🚀 Speed</b> : {3}/s
<b>⏰️ ETA</b> : {4} """
DONATE_TXT = """<b>🥲 Thanks For Showing Interest In Donation! ❤️</b>
If You Like My Bots & Projects, You Can 🎁 Donate Me Any Amount From 10 Rs Upto Your Choice.
<b>🛍 UPI ID:</b> <code>madflixofficial@axl</code> """
HELP_TXT = """<b>Hey</b> {}
Here Is The Help For My Commands."""
# Jishu Developer
# Don't Remove Credit 🥺
# Telegram Channel @Madflix_Bots
# Developer @JishuDeveloper