forked from AshutoshGoswami24/Auto-Rename-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
101 lines (63 loc) · 3.53 KB
/
Copy pathconfig.py
File metadata and controls
101 lines (63 loc) · 3.53 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
import re, os, time
id_pattern = re.compile(r'^.\d+$')
class Config(object):
# pyro client config
API_ID = os.environ.get("API_ID", "25935455")
API_HASH = os.environ.get("API_HASH", "47cb45d81d6e23bfc68671ea78cc6f9c")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "8405053598:AAGJnwra67jBc9fAPPCSNhUVjnqij8Aet0Q")
# database config
DB_NAME = os.environ.get("DB_NAME","rathv")
DB_URL = os.environ.get("DB_URL","mongodb+srv://rathv:rathv@rathv.mxyrgyb.mongodb.net/?retryWrites=true&w=majority&appName=rathv")
# other configs
BOT_UPTIME = time.time()
START_PIC = os.environ.get("START_PIC", "https://tinyurl.com/3hzmtfcd")
ADMIN = [int(admin) if id_pattern.search(admin) else admin for admin in os.environ.get('ADMIN', '').split()]
# -- FORCE_SUB_CHANNELS = ["BotzPW","AshuSupport","AshutoshGoswami24"] -- #
FORCE_SUB_CHANNELS = os.environ.get('FORCE_SUB_CHANNELS', 'https://t.me/moviefilterbott').split(',')
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", "-1002593074176"))
PORT = int(os.environ.get("PORT", "0"))
# 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 @Unknown_person0256</b>
<b><a href='https://github.com/botmaking12/Auto-Rename-Bot'>Tushar_Rathva/Auto-Rename-Bot.git</a></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 S01[episode] [quality][Dual Audio] @AshutoshGoswami24</code>
<b>➻ Your Current Auto Rename Format :</b> <code>{format_template}</code> """
ABOUT_TXT = f"""<b>🤖 My Name :</b>
<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>🧑💻 Developer :</b> <a href='https://t.me/southhindimovie476'>PandaWep</a>
<b>♻️ Bot Made By :</b> @Unknown_person0256"""
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 = """<b>\n
╭━━━━❰ᴘʀᴏɢʀᴇss ʙᴀʀ❱━➣
┣⪼ 🗃️ Sɪᴢᴇ: {1} | {2}
┣⪼ ⏳️ Dᴏɴᴇ : {0}%
┣⪼ 🚀 Sᴩᴇᴇᴅ: {3}/s
┣⪼ ⏰️ Eᴛᴀ: {4}
┣⪼ 🥺 joine Plz: @Unknown_person0256
╰━━━━━━━━━━━━━━━➣ </b>"""
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>My UPI - tusharrathva2-9@okicici</b> """
HELP_TXT = """<b>Hey</b> {}
Joine @Unknown_person0256 To Help """