forked from JishuDeveloper/Auto-Rename-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
98 lines (61 loc) · 3.12 KB
/
Copy pathconfig.py
File metadata and controls
98 lines (61 loc) · 3.12 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
import re, os, time
id_pattern = re.compile(r'^.\d+$')
class Config(object):
# pyro client config
API_ID = os.environ.get("API_ID", "27198464")
API_HASH = os.environ.get("API_HASH", "ee48c6b9ca05a9f95db7b78b2d268ea3")
BOT_TOKEN = os.environ.get("BOT_TOKEN", "7794252669:AAFQ26m_9A5tABApom87fdibHNAqxmw_KBc")
# database config
DB_NAME = os.environ.get("DB_NAME","madflixbotz")
DB_URL = os.environ.get("DB_URL","mongodb+srv://ArshulGod:ArshulGod@cluster0.u1hpidc.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0")
# other configs
BOT_UPTIME = time.time()
START_PIC = os.environ.get("START_PIC", "https://i.postimg.cc/gjx0nTGq/IMG-20251013-105149-145.jpg")
ADMIN = [int(admin) if id_pattern.search(admin) else admin for admin in os.environ.get('ADMIN', '6333237164').split()]
FORCE_SUB = os.environ.get("FORCE_SUB", "Anime_Universe_In_Hindi_Dub")
LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", "-1002700449333"))
# 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 @iwant2boobies</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 = """
╭───────────────⍟
├🤖 My Name : Kakashi
├🖥️ Developer : @iwant2boobies
├📊 Build Version : Kakashi v4.5.0
╰───────────────⍟
"""
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>@iwant2boobies</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