Skip to content

ignore Please It was added by mistake #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 40 commits into
base: Lucy-main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
66730db
Merge pull request #1 from Codeflix-Bots/Lucy-main
sarthakxd16 Apr 15, 2024
e7d1b82
Update info.py
sarthakxd16 Apr 15, 2024
6d0a394
Update commands.py
sarthakxd16 Apr 15, 2024
ffc1885
Update p_ttishow.py
sarthakxd16 Apr 15, 2024
df3beb2
Update pmfilter.py
sarthakxd16 Apr 15, 2024
0f48b2b
Update Script.py
sarthakxd16 Apr 15, 2024
aab3362
Update Script.py
sarthakxd16 Apr 15, 2024
e535418
Update info.py
sarthakxd16 Apr 15, 2024
540ad59
Update Script.py
sarthakxd16 Apr 16, 2024
47d59ff
Update dl.html
sarthakxd16 Apr 16, 2024
ca3c6c5
Update req.html
sarthakxd16 Apr 16, 2024
2d060bd
Update Premium.py
sarthakxd16 Apr 17, 2024
013d25a
Update chatgpt.py
sarthakxd16 Apr 17, 2024
a8f7bcf
Update ask.py
sarthakxd16 Apr 17, 2024
adb13a3
Update ytsearch.py
sarthakxd16 Apr 17, 2024
a2cc145
Update insta.py
sarthakxd16 Apr 17, 2024
6c092c8
Update Script.py
sarthakxd16 Apr 17, 2024
9a9ff5d
Update Script.py
sarthakxd16 Apr 17, 2024
6681ab1
Update info.py
sarthakxd16 Apr 17, 2024
6e52806
Update info.py
sarthakxd16 Apr 17, 2024
7e584b9
Update commands.py
sarthakxd16 Apr 17, 2024
adb4270
Update info.py
sarthakxd16 Apr 17, 2024
ebc05e3
Update pmfilter.py
sarthakxd16 Apr 17, 2024
42eaa77
Update p_ttishow.py
sarthakxd16 Apr 17, 2024
1c6cf2e
Update banned.py
sarthakxd16 Apr 17, 2024
69b999f
Update commands.py
sarthakxd16 Apr 17, 2024
10b62ee
Update commands.py
sarthakxd16 Apr 17, 2024
1c1ed09
Update Script.py
sarthakxd16 Apr 17, 2024
b492d69
Update info.py
sarthakxd16 Apr 17, 2024
f62cf7b
Update info.py
sarthakxd16 Apr 17, 2024
5d17e35
Update Script.py
sarthakxd16 Apr 17, 2024
03f8e55
Update commands.py
sarthakxd16 Apr 17, 2024
a35a52a
Update info.py
sarthakxd16 Apr 19, 2024
38bf45d
Update info.py
sarthakxd16 Apr 28, 2024
4f0c9f3
Update info.py
sarthakxd16 Apr 28, 2024
4d16fa3
Update pmfilter.py
sarthakxd16 Apr 28, 2024
cee56f9
Update info.py
sarthakxd16 Apr 30, 2024
7d4b29a
Merge pull request #2 from Codeflix-Bots/Lucy-main
sarthakxd16 Apr 30, 2024
dedf08d
Update Script.py
sarthakxd16 Apr 30, 2024
284e414
Update info.py
sarthakxd16 Apr 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
268 changes: 155 additions & 113 deletions Script.py

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions info.py
Original file line number Diff line number Diff line change
@@ -27,48 +27,48 @@ def is_enabled(value, default):
SESSION = environ.get('SESSION', 'Media_search')
API_ID = int(environ.get('API_ID', ''))
API_HASH = environ.get('API_HASH', '')
OWNER_ID = environ.get('OWNER_ID', '6497757690')
OWNER_ID = environ.get('OWNER_ID', '1232136108')
BOT_TOKEN = environ.get('BOT_TOKEN', "")

# Bot settings
CACHE_TIME = int(environ.get('CACHE_TIME', 300))
USE_CAPTION_FILTER = bool(environ.get('USE_CAPTION_FILTER', True))

PICS = (environ.get('PICS', 'https://graph.org/file/5e1f8888547a1a896a902.jpg https://graph.org/file/9649c1dcbae09f2e7700e.jpg')).split() #SAMPLE PIC
NOR_IMG = environ.get("NOR_IMG", "https://graph.org/file/549fd9f3272214acade82.jpg")
MELCOW_VID = environ.get("MELCOW_VID", "https://graph.org/file/ccf3cbc4687263ac63420.jpg")
SPELL_IMG = environ.get("SPELL_IMG", "https://graph.org/file/549fd9f3272214acade82.jpg")
SUBSCRIPTION = (environ.get('SUBSCRIPTION', 'https://graph.org/file/347c1f79f36d3cf14e0f5.jpg'))
CODE = (environ.get('CODE', 'https://graph.org/file/02e7ecc3e2693b481b914.jpg'))
PICS = (environ.get('PICS', 'https://graph.org/file/e630eb748f7955d92c69a.jpg https://graph.org/file/3d6214e88828b2bb4caa0.jpg https://graph.org/file/5f62fb444889d8f393c23.jpg https://graph.org/file/176a6665a01c00cae8486.jpg')).split() #SAMPLE PIC
NOR_IMG = environ.get("NOR_IMG", "https://graph.org/file/683c4bd594a2ca5162f13.jpg")
MELCOW_VID = environ.get("MELCOW_VID", "https://graph.org/file/5bc59cd92785185051ad3.mp4")
SPELL_IMG = environ.get("SPELL_IMG", "https://graph.org/file/1fc99ad53dd1bc4fdd1f1.png")
SUBSCRIPTION = (environ.get('SUBSCRIPTION', 'https://graph.org/file/f6894089b82ff6b36a552.jpg'))
CODE = (environ.get('CODE', 'https://graph.org/file/f880ed039bd0a8b504369.jpg'))


# Command
COMMAND_HAND_LER = environ.get("COMMAND_HAND_LER", "/")
PREFIX = environ.get("PREFIX", "/")

# for eval function, work only in a specific group
EVAL_ID = environ.get("EVAL_ID", "-1001566837125")
EVAL_ID = environ.get("EVAL_ID", "-1001760527515")

# Referal Settings
REFERAL_COUNT = int(environ.get('REFERAL_COUNT', '20')) # number of referal count
REFERAL_COUNT = int(environ.get('REFERAL_COUNT', '10')) # number of referal count
REFERAL_PREMEIUM_TIME = environ.get('REFERAL_PREMEIUM_TIME', '1 week')
OWNER_USERNAME = environ.get('OWNER_USERNAME', 'sewxiy') # owner username without @
OWNER_USERNAME = environ.get('OWNER_USERNAME', 'sarthakkale16') # owner username without @

# Admins, Channels & Users
ADMINS = [int(admin) if id_pattern.search(admin) else admin for admin in environ.get('ADMINS', '6497757690 5115691197').split()]
CHANNELS = [int(ch) if id_pattern.search(ch) else ch for ch in environ.get('CHANNELS', '-1001619818259').split()]
ADMINS = [int(admin) if id_pattern.search(admin) else admin for admin in environ.get('ADMINS', '1232136108').split()]
CHANNELS = [int(ch) if id_pattern.search(ch) else ch for ch in environ.get('CHANNELS', '-1001760527515').split()]
auth_users = [int(user) if id_pattern.search(user) else user for user in environ.get('AUTH_USERS', '').split()]
AUTH_USERS = (auth_users + ADMINS) if auth_users else []
PREMIUM_USER = [int(user) if id_pattern.search(user) else user for user in environ.get('PREMIUM_USER', '6497757690').split()]
PREMIUM_USER = [int(user) if id_pattern.search(user) else user for user in environ.get('PREMIUM_USER', '1232136108').split()]
auth_channel = environ.get('AUTH_CHANNEL', '') #Channel / Group Id for force sub ( make sure bot is admin )
auth_grp = environ.get('AUTH_GROUP')
AUTH_CHANNEL = int(auth_channel) if auth_channel and id_pattern.search(auth_channel) else None
AUTH_GROUPS = [int(ch) for ch in auth_grp.split()] if auth_grp else None
support_chat_id = environ.get('SUPPORT_CHAT_ID', '-1001566837125') # support group id ( make sure bot is admin )
reqst_channel = environ.get('REQST_CHANNEL_ID', '-1001905367057') # request channel id ( make sure bot is admin )
support_chat_id = environ.get('SUPPORT_CHAT_ID', '-1001899603043') # support group id ( make sure bot is admin )
reqst_channel = environ.get('REQST_CHANNEL_ID', '-1002016697428') # request channel id ( make sure bot is admin )
REQST_CHANNEL = int(reqst_channel) if reqst_channel and id_pattern.search(reqst_channel) else None
SUPPORT_CHAT_ID = int(support_chat_id) if support_chat_id and id_pattern.search(support_chat_id) else None
NO_RESULTS_MSG = bool(environ.get("NO_RESULTS_MSG", False)) # True if you want no results messages in Log Channel
NO_RESULTS_MSG = bool(environ.get("NO_RESULTS_MSG", True)) # True if you want no results messages in Log Channel

# MongoDB information
DATABASE_URI = environ.get('DATABASE_URI', "")
@@ -81,44 +81,44 @@ def is_enabled(value, default):
AI = is_enabled((environ.get("AI","True")), True)
OPENAI_API = environ.get("OPENAI_API", " ")
GOOGLE_API_KEY = environ.get("GOOGLE_API_KEY", "AIzaSyD214hhYJ-xf8rfaWX044_g1VEBQ0ua55Q") #DON'T REMOVE ANYTHING!! @CREDIT @SD_BOTS
AI_LOGS = int(environ.get("AI_LOGS", "-1001868871195")) #GIVE YOUR NEW LOG CHANNEL ID TO STORE MESSAGES THAT THEY SEARCH IN BOT PM.... [ i have added this to keep an eye on the users message, to avoid misuse of Bot ]
AI_LOGS = int(environ.get("AI_LOGS", "-1002016697428")) #GIVE YOUR NEW LOG CHANNEL ID TO STORE MESSAGES THAT THEY SEARCH IN BOT PM.... [ i have added this to keep an eye on the users message, to avoid misuse of Bot ]

#Auto approve
CHAT_ID = [int(app_chat_id) if id_pattern.search(app_chat_id) else app_chat_id for app_chat_id in environ.get('CHAT_ID', '').split()]
TEXT = environ.get("APPROVED_WELCOME_TEXT", "<b>{mention},\n\nʏᴏᴜʀ ʀᴇǫᴜᴇsᴛ ᴛᴏ ᴊᴏɪɴ {title} ɪs ᴀᴘᴘʀᴏᴠᴇᴅ.\n\‣ ᴘᴏᴡᴇʀᴇᴅ ʙʏ @codflix_bots</b>")
CHAT_ID = [int(app_chat_id) if id_pattern.search(app_chat_id) else app_chat_id for app_chat_id in environ.get('CHAT_ID', '-1001688985880').split()]
TEXT = environ.get("APPROVED_WELCOME_TEXT", "<b>{mention},\n\nʏᴏᴜʀ ʀᴇǫᴜᴇsᴛ ᴛᴏ ᴊᴏɪɴ {title} ɪs ᴀᴘᴘʀᴏᴠᴇᴅ.\n\‣ ᴘᴏᴡᴇʀᴇᴅ ʙʏ @rb1official</b>")
APPROVED = environ.get("APPROVED_WELCOME", "on").lower()

#stream link shortner
STREAM_SITE = (environ.get('STREAM_SITE', 'shareus.io'))
STREAM_API = (environ.get('STREAM_API', ''))
STREAMHTO = (environ.get('STREAMHTO', 'https://t.me/How_to_Download_7x/32'))
STREAM_SITE = (environ.get('STREAM_SITE', 'hmdiskshortner.link'))
STREAM_API = (environ.get('STREAM_API', 'fc0d365e896917109abf4640d13061584a1c7a70'))
STREAMHTO = (environ.get('STREAMHTO', 'https://t.me/rb1bots'))

# Verify
VERIFY = bool(environ.get('VERIFY', False)) # Verification On ( True ) / Off ( False )
HOWTOVERIFY = environ.get('HOWTOVERIFY', 'https://t.me/How_to_Download_7x/26') # How to open tutorial link for verification
HOWTOVERIFY = environ.get('HOWTOVERIFY', 'https://t.me/rb1bots') # How to open tutorial link for verification

# Others
SHORTLINK_URL = environ.get('SHORTLINK_URL', '')
SHORTLINK_API = environ.get('SHORTLINK_API', '')
IS_SHORTLINK = bool(environ.get('IS_SHORTLINK', False))
SHORTLINK_URL = environ.get('SHORTLINK_URL', 'mdiskshortner.link')
SHORTLINK_API = environ.get('SHORTLINK_API', 'fc0d365e896917109abf4640d13061584a1c7a70')
IS_SHORTLINK = bool(environ.get('IS_SHORTLINK', True))
DELETE_CHANNELS = [int(dch) if id_pattern.search(dch) else dch for dch in environ.get('DELETE_CHANNELS', '0').split()]
MAX_B_TN = environ.get("MAX_B_TN", "5")
MAX_BTN = is_enabled((environ.get('MAX_BTN', "True")), True)
PORT = environ.get("PORT", "8080")
BOT_USERNAME = environ.get("BOT_USERNAME", "Lucy_Filter_bot")
BOT_NAME = environ.get("BOT_NAME", "𝐋ᴜᴄʏ")
BOT_ID = environ.get("BOT_ID", "6040310745")
S_GROUP = environ.get('S_GROUP', "weebs_support")
S_CHANNEL = environ.get('S_CHANNEL', "codeflix_bots")
GRP_LNK = environ.get('GRP_LNK', 'https://t.me/movie7xchat')
CHNL_LNK = environ.get('CHNL_LNK', 'https://t.me/team_netflix')
TUTORIAL = environ.get('TUTORIAL', 'https://t.me/How_to_Download_7x/32') # Tutorial video link for opening shortlink website
BOT_USERNAME = environ.get("BOT_USERNAME", "requestbox1_bot")
BOT_NAME = environ.get("BOT_NAME", "ʀᴇQᴜᴇꜱᴛʙᴏx1")
BOT_ID = environ.get("BOT_ID", "7199288693")
S_GROUP = environ.get('S_GROUP', "rb1reborned")
S_CHANNEL = environ.get('S_CHANNEL', "requestbox1spot")
GRP_LNK = environ.get('GRP_LNK', 'https://t.me/+_RzjfW9w7Dg1Nzk9')
CHNL_LNK = environ.get('CHNL_LNK', 'https://t.me/requestbox1official')
TUTORIAL = environ.get('TUTORIAL', 'https://t.me/rb1bots') # Tutorial video link for opening shortlink website
IS_TUTORIAL = bool(environ.get('IS_TUTORIAL', True))
MSG_ALRT = environ.get('MSG_ALRT', 'ᴍᴀɪɴᴛᴀɪɴᴇᴅ ʙʏ : ᴄᴏᴅᴇғʟɪx ʙᴏᴛs')
LOG_CHANNEL = int(environ.get('LOG_CHANNEL', '-1001868871195')) #Log channel id ( make sure bot is admin )
SUPPORT_CHAT = environ.get('SUPPORT_CHAT', 'https://t.me/+DnmZbLjS0iw0YWI1') #Support group link ( make sure bot is admin )
P_TTI_SHOW_OFF = is_enabled((environ.get('P_TTI_SHOW_OFF', "False")), False)
IMDB = is_enabled((environ.get('IMDB', "False")), False)
MSG_ALRT = environ.get('MSG_ALRT', 'ᴍᴀɪɴᴛᴀɪɴᴇᴅ ʙʏ : ꜱᴀʀᴛʜᴀᴋ #ʀᴇQᴜᴇꜱᴛʙᴏx1')
LOG_CHANNEL = int(environ.get('LOG_CHANNEL', '-1002016697428')) #Log channel id ( make sure bot is admin )
SUPPORT_CHAT = environ.get('SUPPORT_CHAT', 'https://t.me/rb1reborned') #Support group link ( make sure bot is admin )
P_TTI_SHOW_OFF = is_enabled((environ.get('P_TTI_SHOW_OFF', "True")), True)
IMDB = is_enabled((environ.get('IMDB', "True")), True)
AUTO_FFILTER = is_enabled((environ.get('AUTO_FFILTER', "True")), True)
AUTO_DELETE = is_enabled((environ.get('AUTO_DELETE', "True")), True)
SINGLE_BUTTON = is_enabled((environ.get('SINGLE_BUTTON', "True")), True)
@@ -171,7 +171,7 @@ def is_enabled(value, default):
URL = "http://{}/".format(FQDN)

# add premium logs channel id
PREMIUM_LOGS = int(environ.get('PREMIUM_LOGS', '-1001868871195'))
PREMIUM_LOGS = int(environ.get('PREMIUM_LOGS', '-1002016697428'))

LOG_STR = "Current Cusomized Configurations are:-\n"
LOG_STR += ("IMDB Results are enabled, Bot will be showing imdb details for you queries.\n" if IMDB else "IMBD Results are disabled.\n")
4 changes: 2 additions & 2 deletions plugins/Premium.py
Original file line number Diff line number Diff line change
@@ -147,8 +147,8 @@ async def plan(client, message):
users = message.from_user.mention
btn = [[

InlineKeyboardButton("📲 ꜱᴇɴᴅ ᴘᴀʏᴍᴇɴᴛ ꜱᴄʀᴇᴇɴꜱʜᴏᴛ ʜᴇʀᴇ", user_id=int(6497757690))],[InlineKeyboardButton("❌ ᴄʟᴏꜱᴇ ❌", callback_data="close_data")
InlineKeyboardButton("📲 ꜱᴇɴᴅ ᴘᴀʏᴍᴇɴᴛ ꜱᴄʀᴇᴇɴꜱʜᴏᴛ ʜᴇʀᴇ", user_id=int(1232136108))],[InlineKeyboardButton("❌ ᴄʟᴏꜱᴇ ❌", callback_data="close_data")
]]
await message.reply_photo(photo="https://telegra.ph/file/734170f40b8169830d821.jpg", caption=script.PREMIUM_TEXT.format(message.from_user.mention), reply_markup=InlineKeyboardMarkup(btn))
await message.reply_photo(photo="https://graph.org/file/f6894089b82ff6b36a552.jpg", caption=script.PREMIUM_TEXT.format(message.from_user.mention), reply_markup=InlineKeyboardMarkup(btn))

# SPECIAL THANKS TO @DeletedFromEarth FOR MODIFYING THESE AMAZING CODES
2 changes: 1 addition & 1 deletion plugins/banned.py
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ async def ban_reply(bot, message):
@Client.on_message(filters.group & disabled_group & filters.incoming)
async def grp_bd(bot, message):
buttons = [[
InlineKeyboardButton('Support', url=f'https://t.me/HpRequestBot')
InlineKeyboardButton('Support', url=f'https://t.me/helpsarthak_tBot')
]]
reply_markup=InlineKeyboardMarkup(buttons)
vazha = await db.get_chat(message.chat.id)
Loading