Skip to content
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

update #35

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0c1591b
Update config.py
EmptyCircuit Mar 8, 2025
404d9e4
Update config.py
EmptyCircuit Mar 8, 2025
f755ce2
Update bot.py
EmptyCircuit Mar 8, 2025
81ab51d
Update config.py
EmptyCircuit Mar 8, 2025
06993f7
Update config.py
EmptyCircuit Mar 8, 2025
bb668ae
Update config.py
EmptyCircuit Mar 8, 2025
940d0ca
Update config.py
EmptyCircuit Mar 8, 2025
443a8c6
Update config.py
EmptyCircuit Mar 8, 2025
7500e66
Update config.py
EmptyCircuit Mar 8, 2025
565324a
Update config.py
EmptyCircuit Mar 8, 2025
a3f2fd8
Update config.py
EmptyCircuit Mar 8, 2025
a021920
Update config.py
EmptyCircuit Mar 8, 2025
989e746
Update bot.py
EmptyCircuit Mar 8, 2025
de4c8f1
Update config.py
EmptyCircuit Mar 8, 2025
8712b02
Update config.py
EmptyCircuit Mar 8, 2025
c91e9e7
Update config.py
EmptyCircuit Mar 8, 2025
5b204d6
Update config.py
EmptyCircuit Mar 8, 2025
fb72d07
Update config.py
EmptyCircuit Mar 8, 2025
824ac21
Update config.py
EmptyCircuit Mar 8, 2025
6854be1
Update config.py
EmptyCircuit Mar 8, 2025
2e20a60
Update config.py
EmptyCircuit Mar 8, 2025
8689564
Update config.py
EmptyCircuit Mar 8, 2025
c8c39db
Update start.py
EmptyCircuit Mar 8, 2025
1e9dfea
Update config.py
EmptyCircuit Mar 8, 2025
b2ab185
Update bot.py
EmptyCircuit Mar 8, 2025
30662ea
Update bot.py
EmptyCircuit Mar 8, 2025
3e2b090
Update bot.py
EmptyCircuit Mar 8, 2025
47603e1
Update config.py
EmptyCircuit Mar 9, 2025
b870ea2
Update config.py
EmptyCircuit Mar 9, 2025
50f445c
Update bot.py
EmptyCircuit Mar 9, 2025
e2a1141
Update config.py
EmptyCircuit Mar 9, 2025
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
18 changes: 9 additions & 9 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def start(self):
self.LOGGER(__name__).warning(a)
self.LOGGER(__name__).warning("Bot can't Export Invite link from Force Sub Channel!")
self.LOGGER(__name__).warning(f"Please Double check the FORCE_SUB_CHANNEL1 value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: {FORCE_SUB_CHANNEL1}")
self.LOGGER(__name__).info("\nBot Stopped. https://t.me/weebs_support for support")
self.LOGGER(__name__).info("\nBot Stopped. https://t.me/cypherixsocity")
sys.exit()
if FORCE_SUB_CHANNEL2:
try:
Expand All @@ -58,7 +58,7 @@ async def start(self):
self.LOGGER(__name__).warning(a)
self.LOGGER(__name__).warning("Bot can't Export Invite link from Force Sub Channel!")
self.LOGGER(__name__).warning(f"Please Double check the FORCE_SUB_CHANNEL2 value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: {FORCE_SUB_CHANNEL2}")
self.LOGGER(__name__).info("\nBot Stopped. https://t.me/weebs_support for support")
self.LOGGER(__name__).info("\nBot Stopped. https://t.me/cypherixsocity")
sys.exit()
if FORCE_SUB_CHANNEL3:
try:
Expand All @@ -71,7 +71,7 @@ async def start(self):
self.LOGGER(__name__).warning(a)
self.LOGGER(__name__).warning("Bot can't Export Invite link from Force Sub Channel!")
self.LOGGER(__name__).warning(f"Please Double check the FORCE_SUB_CHANNEL3 value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: {FORCE_SUB_CHANNEL3}")
self.LOGGER(__name__).info("\nBot Stopped. https://t.me/weebs_support for support")
self.LOGGER(__name__).info("\nBot Stopped. https://t.me/cypherixsocity")
sys.exit()
if FORCE_SUB_CHANNEL4:
try:
Expand All @@ -84,7 +84,7 @@ async def start(self):
self.LOGGER(__name__).warning(a)
self.LOGGER(__name__).warning("Bot can't Export Invite link from Force Sub Channel!")
self.LOGGER(__name__).warning(f"Please Double check the FORCE_SUB_CHANNEL4 value and Make sure Bot is Admin in channel with Invite Users via Link Permission, Current Force Sub Channel Value: {FORCE_SUB_CHANNEL4}")
self.LOGGER(__name__).info("\nBot Stopped. https://t.me/weebs_support for support")
self.LOGGER(__name__).info("\nBot Stopped. https://t.me/cypherixsocity")
sys.exit()
try:
db_channel = await self.get_chat(CHANNEL_ID)
Expand All @@ -94,11 +94,11 @@ async def start(self):
except Exception as e:
self.LOGGER(__name__).warning(e)
self.LOGGER(__name__).warning(f"Make Sure bot is Admin in DB Channel, and Double check the CHANNEL_ID Value, Current Value {CHANNEL_ID}")
self.LOGGER(__name__).info("\nBot Stopped. Join https://t.me/weebs_support for support")
self.LOGGER(__name__).info("\nBot Stopped. Join https://t.me/cypherixsocity")
sys.exit()

self.set_parse_mode(ParseMode.HTML)
self.LOGGER(__name__).info(f"Bot Running..!\n\nCreated by \nhttps://t.me/weebs_support")
self.LOGGER(__name__).info(f"Bot Running..!\n\nCreated by \nhhttps://t.me/cypherixsocity")
self.LOGGER(__name__).info(f"""


Expand All @@ -112,15 +112,15 @@ async def start(self):

self.set_parse_mode(ParseMode.HTML)
self.username = usr_bot_me.username
self.LOGGER(__name__).info(f"Bot Running..! Made by @Codeflix_Bots")
self.LOGGER(__name__).info(f"Bot Running..! Modify by @Cypherixsocity")

# Start Web Server
app = web.AppRunner(await web_server())
await app.setup()
await web.TCPSite(app, "0.0.0.0", PORT).start()


try: await self.send_message(OWNER_ID, text = f"<b><blockquote>🤖 Bᴏᴛ Rᴇsᴛᴀʀᴛᴇᴅ by @Codeflix_Bots</blockquote></b>")
try: await self.send_message(OWNER_ID, text = f"<b><blockquote>🤖 Bᴏᴛ Rᴇsᴛᴀʀᴛᴇᴅ by @Cypherixsocity</blockquote></b>")
except: pass

async def stop(self, *args):
Expand All @@ -131,7 +131,7 @@ def run(self):
"""Run the bot."""
loop = asyncio.get_event_loop()
loop.run_until_complete(self.start())
self.LOGGER(__name__).info("Bot is now running. Thanks to @rohit_1888")
self.LOGGER(__name__).info("Bot is now running. Thanks to @cypherixsocity")
try:
loop.run_forever()
except KeyboardInterrupt:
Expand Down
33 changes: 19 additions & 14 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Don't Remove Credit @CodeFlix_Bots, @rohit_1888
# Don't Remove Credit @CodeFlix_Bots, @rohit_1888
# Ask Doubt on telegram @CodeflixSupport


Expand Down Expand Up @@ -28,7 +28,7 @@
DB_NAME = os.environ.get("DATABASE_NAME", "Cluster0")

#Time in seconds for message delete, put 0 to never delete
TIME = int(os.environ.get("TIME", "10"))
TIME = int(os.environ.get("TIME", "3600"))


#force sub channel id, if you want enable force sub
Expand All @@ -40,29 +40,34 @@

TG_BOT_WORKERS = int(os.environ.get("TG_BOT_WORKERS", "4"))

START_PIC = os.environ.get("START_PIC", "https://telegra.ph/file/ec17880d61180d3312d6a.jpg")
FORCE_PIC = os.environ.get("FORCE_PIC", "https://telegra.ph/file/e292b12890b8b4b9dcbd1.jpg")
START_PIC = os.environ.get("START_PIC", "https://w.wallhaven.cc/full/6d/wallhaven-6d9qpl.png")
FORCE_PIC = os.environ.get("FORCE_PIC", "https://w.wallhaven.cc/full/gp/wallhaven-gpoovd.jpg")

# Turn this feature on or off using True or False put value inside ""
# TRUE for yes FALSE if no
TOKEN = True if os.environ.get('TOKEN', "True") == "True" else False
SHORTLINK_URL = os.environ.get("SHORTLINK_URL", "publicearn.online")
SHORTLINK_API = os.environ.get("SHORTLINK_API", "adabe1c0675be8ffc5ccbc84a9a65bc5a5d3ec69")
TOKEN = True if os.environ.get('TOKEN', "False") == "True" else False
SHORTLINK_URL = os.environ.get("SHORTLINK_URL", "")
SHORTLINK_API = os.environ.get("SHORTLINK_API", "")
VERIFY_EXPIRE = int(os.environ.get('VERIFY_EXPIRE', 600)) # Add time in seconds
IS_VERIFY = os.environ.get("IS_VERIFY", "True")
TUT_VID = os.environ.get("TUT_VID","https://t.me/hwdownload/3")


HELP_TXT = "<b><blockquote>ᴛʜɪs ɪs ᴀɴ ғɪʟᴇ ᴛᴏ ʟɪɴᴋ ʙᴏᴛ ᴡᴏʀᴋ ғᴏʀ @otakuflix_network\n\n❏ ʙᴏᴛ ᴄᴏᴍᴍᴀɴᴅs\n├/start : sᴛᴀʀᴛ ᴛʜᴇ ʙᴏᴛ\n├/about : ᴏᴜʀ Iɴғᴏʀᴍᴀᴛɪᴏɴ\n└/help : ʜᴇʟᴘ ʀᴇʟᴀᴛᴇᴅ ʙᴏᴛ\n\n sɪᴍᴘʟʏ ᴄʟɪᴄᴋ ᴏɴ ʟɪɴᴋ ᴀɴᴅ sᴛᴀʀᴛ ᴛʜᴇ ʙᴏᴛ ᴊᴏɪɴ ʙᴏᴛʜ ᴄʜᴀɴɴᴇʟs ᴀɴᴅ ᴛʀʏ ᴀɢᴀɪɴ ᴛʜᴀᴛs ɪᴛ.....!\n\n ᴅᴇᴠᴇʟᴏᴘᴇᴅ ʙʏ <a href=https://t.me/cosmic_freak>sᴜʙᴀʀᴜ</a></blockquote></b>"
HELP_TXT = HELP_TXT = "<b><blockquote>ᴛʜɪs ɪs ғɪʟᴇ ᴛᴏ ʟɪɴᴋ ʙᴏᴛ ᴡᴏʀᴋ ғᴏʀ @cypherixsocity\n\n❏ ʙᴏᴛ ᴄᴏᴍᴍᴀɴᴅs\n├ /start : sᴛᴀʀᴛ ᴛʜᴇ ʙᴏᴛ\n├ /about : ɪɴғᴏʀᴍᴀᴛɪᴏɴ ᴀʙᴏᴜᴛ ᴛʜᴇ ʙᴏᴛ\n└ /help : ɢᴇᴛ ʜᴇʟᴘ ʀᴇʟᴀᴛᴇᴅ ᴛᴏ ʙᴏᴛ\n\n 🔹 sɪᴍᴘʟʏ ᴄʟɪᴄᴋ ᴏɴ ᴛʜᴇ ʟɪɴᴋ, sᴛᴀʀᴛ ᴛʜᴇ ʙᴏᴛ, ᴊᴏɪɴ ᴛʜᴇ ʀᴇǫᴜɪʀᴇᴅ ᴄʜᴀɴɴᴇʟs, ᴀɴᴅ ᴛʀʏ ᴀɢᴀɪɴ!\n\n 🔹 ᴅᴇᴠᴇʟᴏᴘᴇᴅ ʙʏ <a href=https://t.me/cypherixsocity>ᴄʏᴘʜᴇʀɪx sᴏᴄɪᴛʏ</a></blockquote></b>"


ABOUT_TXT = "<b><blockquote>◈ ᴄʀᴇᴀᴛᴏʀ: <a href=https://t.me/cosmic_freak>subaru</a>\n◈ ꜰᴏᴜɴᴅᴇʀ ᴏꜰ : <a href=https://t.me/otakuflix_network>ᴏᴛᴀᴋᴜғʟɪx ɴᴇᴛᴡᴏʀᴋ</a>\n◈ ᴀɴɪᴍᴇ ᴄʜᴀɴɴᴇʟ : <a href=https://t.me/anime_cruise_netflix>ᴀɴɪᴍᴇ ᴄʀᴜɪsᴇ</a>\n◈ sᴇʀɪᴇs ᴄʜᴀɴɴᴇʟ : <a href=https://t.me/webseries_flix>ᴡᴇʙsᴇʀɪᴇs ғʟɪx</a>\n◈ ᴀᴅᴜʟᴛ ᴍᴀɴʜᴡᴀ : <a href=https://t.me/pornhwa_flix>ᴘᴏʀɴʜᴡᴀs</a>\n◈ ᴅᴇᴠᴇʟᴏᴘᴇʀ : <a href=https://t.me/cosmic_freak>subaru</a></blockquote></b>"
ABOUT_TXT = ABOUT_TXT = "<b><blockquote>🚀 ᴡᴇʟᴄᴏᴍᴇ ᴛᴏ <a href=https://t.me/cypherixsocity>ᴄʏᴘʜᴇʀɪx sᴏᴄɪᴛʏ</a> – ᴡʜᴇʀᴇ ᴡᴇ ᴛᴜʀɴ ᴄᴏғғᴇᴇ ɪɴᴛᴏ ᴄᴏᴅᴇ & ᴍᴇᴍᴇs ɪɴᴛᴏ ᴄᴏᴜʀsᴇs! ☕💻\n\n👨‍💻 ᴡʜᴀᴛ ᴡᴇ ᴅᴏ:\n✔ ᴡᴇʙ ᴅᴇᴠᴇʟᴏᴘᴍᴇɴᴛ 🖥️\n✔ ᴇᴅɪᴛɪɴɢ & ᴘʀᴏᴅᴜᴄᴛɪᴏɴ 🎬\n✔ ᴄʏʙᴇʀsᴇᴄᴜʀɪᴛʏ & ᴛᴇᴄʜ ꜰᴜɴ 🤖\n✔ ᴄᴏᴜʀsᴇs ᴛʜᴀᴛ ᴀᴄᴛᴜᴀʟʟʏ ᴍᴀᴋᴇ ʏᴏᴜ sᴏᴜɴᴅ sᴍᴀʀᴛ 😆\n\n🤣 ʜᴇʀᴇ’ꜱ ᴡʜʏ ʏᴏᴜ ꜱʜᴏᴜʟᴅ ᴊᴏɪɴ:\n❌ ᴡᴇ ᴅᴏɴ'ᴛ ᴘʀᴏᴍɪsᴇ ʏᴏᴜ'ʟʟ ʙᴇᴄᴏᴍᴇ ᴇʟᴏɴ ᴍᴜꜱᴋ...\n✅ ʙᴜᴛ ʏᴏᴜ ᴡɪʟʟ ʟᴇᴀʀɴ ᴄᴏᴅɪɴɢ, ᴄʏʙᴇʀsᴇᴄ, & ᴠɪᴅᴇᴏ ᴇᴅɪᴛɪɴɢ ᴡɪᴛʜ ᴄᴏᴏʟ ᴘᴇᴏᴘʟᴇ! 😎\n\n📢 ᴊᴏɪɴ ɴᴏᴡ, ᴏʀ ʀᴇɢʀᴇᴛ ɪᴛ ᴡʜᴇɴ ʏᴏᴜ’ʀᴇ ᴛʀʏɪɴɢ ᴛᴏ ɢᴏᴏɢʟᴇ “ʜᴏᴡ ᴛᴏ ᴍᴀᴋᴇ ᴀ ᴡᴇʙsɪᴛᴇ” ᴀᴛ 3ᴀᴍ! 😂</blockquote></b>"


START_MSG = os.environ.get("START_MESSAGE", "<b><blockquote>ʙᴀᴋᴋᴀᴀᴀ!! {first}\n\n ɪ ᴀᴍ ғɪʟᴇ sᴛᴏʀᴇ ʙᴏᴛ, ɪ ᴄᴀɴ sᴛᴏʀᴇ ᴘʀɪᴠᴀᴛᴇ ғɪʟᴇs ɪɴ sᴘᴇᴄɪғɪᴇᴅ ᴄʜᴀɴɴᴇʟ ᴀɴᴅ ᴏᴛʜᴇʀ ᴜsᴇʀs ᴄᴀɴ ᴀᴄᴄᴇss ɪᴛ ғʀᴏᴍ sᴘᴇᴄɪᴀʟ ʟɪɴᴋ.</blockquote></b>")
START_MSG = os.environ.get("START_MESSAGE",
"<b><blockquote>👋 ᴡᴇʟᴄᴏᴍᴇ, {first}...\n\n"
"I'ᴍ ʏᴏᴜʀ ᴘᴇʀsᴏɴᴀʟ ғɪʟᴇ ᴠᴇɴᴅɪɴɢ ᴍᴀᴄʜɪɴᴇ. ᴅʀᴏᴘ ᴀ ʟɪɴᴋ, ɢᴇᴛ ᴀ ғɪʟᴇ. \n"
"ɴᴏ sᴍᴀʟʟ ᴛᴀʟᴋ—ɪ’ᴍ ɴᴏᴛ ʏᴏᴜʀ ᴇx! ❌😂\n\n"
"🚀 ᴊᴏɪɴ ᴛʜᴇ ᴜɴᴅᴇʀɢʀᴏᴜɴᴅ: @cypherixsocity</blockquote></b>"
)
try:
ADMINS=[6376328008]
for x in (os.environ.get("ADMINS", "5115691197 6273945163 6103092779 5231212075").split()):
ADMINS=[7514451812]
for x in (os.environ.get("ADMINS", "7324682529 7514451812").split()):
ADMINS.append(int(x))
except ValueError:
raise Exception("Your Admins list does not contain valid integers.")
Expand All @@ -71,7 +76,7 @@
FORCE_MSG = os.environ.get("FORCE_SUB_MESSAGE", "ʜᴇʟʟᴏ {first}\n\n<b>ᴊᴏɪɴ ᴏᴜʀ ᴄʜᴀɴɴᴇʟs ᴀɴᴅ ᴛʜᴇɴ ᴄʟɪᴄᴋ ᴏɴ ʀᴇʟᴏᴀᴅ button ᴛᴏ ɢᴇᴛ ʏᴏᴜʀ ʀᴇǫᴜᴇꜱᴛᴇᴅ ꜰɪʟᴇ.</b>")

#set your Custom Caption here, Keep None for Disable Custom Caption
CUSTOM_CAPTION = os.environ.get("CUSTOM_CAPTION", "<b>• ʙʏ @OtakuFlix_Network</b>")
CUSTOM_CAPTION = os.environ.get("CUSTOM_CAPTION", "<b>• ʙʏ @cypherixsocity</b>")

#set True if you want to prevent users from forwarding files from bot
PROTECT_CONTENT = True if os.environ.get('PROTECT_CONTENT', "False") == "True" else False
Expand Down Expand Up @@ -105,4 +110,4 @@

def LOGGER(name: str) -> logging.Logger:
return logging.getLogger(name)


2 changes: 1 addition & 1 deletion plugins/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ async def start_command(client: Client, message: Message):

[
InlineKeyboardButton("𝗔𝗯𝗼𝘂𝘁", callback_data = "about"),
InlineKeyboardButton('𝗖𝗵𝗮𝗻𝗻𝗲𝗹𝘀', url='https://t.me/nova_flix')
InlineKeyboardButton('𝗖𝗵𝗮𝗻𝗻𝗲𝗹𝘀', url='https://t.me/cypherixsocity')

]
]
Expand Down