Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 13 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
FROM python:3.10-slim-buster

RUN apt update && apt upgrade -y
RUN apt install git -y
COPY requirements.txt /requirements.txt
#RUN apt update && apt upgrade -y
#RUN apt install git -y
#COPY requirements.txt /requirements.txt
WORKDIR .
COPY . .

RUN cd /
RUN pip3 install -U pip && pip3 install -U -r requirements.txt
RUN mkdir /LazyPrincessV2
WORKDIR /LazyPrincessV2
COPY start.sh /start.sh
CMD ["/bin/bash", "/start.sh"]
RUN pip3 install -r requirements.txt

#RUN cd /
#RUN pip3 install -U pip && pip3 install -U -r requirements.txt
#RUN mkdir /LazyPrincessV2
#WORKDIR /LazyPrincessV2
#COPY start.sh /start.sh
CMD ["python3", "bot.py"]
28 changes: 14 additions & 14 deletions info.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def is_enabled(value, default):
return default

# Bot information
SESSION = environ.get('SESSION', 'LazyPrincess')
API_ID = int(environ.get('API_ID', '13323016'))
API_HASH = environ.get('API_HASH', '68e791e616100248b0a53ae86a661a12')
BOT_TOKEN = environ.get('BOT_TOKEN', "")
SESSION = environ.get('SESSION', 'IMdB_OTT')
API_ID = int(environ.get('API_ID', '2517876'))
API_HASH = environ.get('API_HASH', 'b290584ca42f8a4e4c3687242a2ca13b')
BOT_TOKEN = environ.get('BOT_TOKEN', "5051127762:AAFgou81sUo3LaS5vYEiNv398uGMAEB8XWA")

#Port
PORT = environ.get("PORT", "8080")
Expand All @@ -25,25 +25,25 @@ def is_enabled(value, default):
PICS = (environ.get('PICS', 'https://telegra.ph/file/68d28011b2bc356b5db01.png')).split()

# Admins, Channels & Users
ADMINS = [int(admin) if id_pattern.search(admin) else admin for admin in environ.get('ADMINS', '1484670284').split()]
CHANNELS = [int(ch) if id_pattern.search(ch) else ch for ch in environ.get('CHANNELS', '-1001620891165').split()]
auth_users = [int(user) if id_pattern.search(user) else user for user in environ.get('AUTH_USERS', '1484670284').split()]
ADMINS = [int(admin) if id_pattern.search(admin) else admin for admin in environ.get('ADMINS', '1079178574').split()]
CHANNELS = [int(ch) if id_pattern.search(ch) else ch for ch in environ.get('CHANNELS', '-1001797496668').split()]
auth_users = [int(user) if id_pattern.search(user) else user for user in environ.get('AUTH_USERS', '1079178574').split()]
AUTH_USERS = (auth_users + ADMINS) if auth_users else []
auth_channel = environ.get('AUTH_CHANNEL', '-1001765107260')
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

# MongoDB information
DATABASE_URI = environ.get('DATABASE_URI', "")
DATABASE_NAME = environ.get('DATABASE_NAME', "Cluster0")
DATABASE_URI = environ.get('DATABASE_URI', "mongodb+srv://thunderflix:oxoo@cluster0.y1y7v.mongodb.net/myFirstDatabase?retryWrites=true&w=majority")
DATABASE_NAME = environ.get('DATABASE_NAME', "ThunderFlix")
COLLECTION_NAME = environ.get('COLLECTION_NAME', 'Telegram_files')

# Others
LOG_CHANNEL = int(environ.get('LOG_CHANNEL', '-1001782419622'))
SUPPORT_CHAT = environ.get('SUPPORT_CHAT', 'LazyPrincessSupport')
SUPPORT_CHAT = environ.get('SUPPORT_CHAT', 'OxooFlix_Support')
P_TTI_SHOW_OFF = is_enabled((environ.get('P_TTI_SHOW_OFF', "True")), True)
IMDB = is_enabled((environ.get('IMDB', "True")), False)
IMDB = is_enabled((environ.get('IMDB', "False")), False)
SINGLE_BUTTON = is_enabled((environ.get('SINGLE_BUTTON', "True")), False)
CUSTOM_FILE_CAPTION = environ.get("CUSTOM_FILE_CAPTION", "⚡<b>File uploaded by [Movies Adaa™](https://t.me/real_MoviesAdda1)</b>⚡\n\nName: {file_caption} \n\n⚙️ <b>Size: </b><code>{file_size}</code>🔥 ↭ <b>Join Now [MoviesAdda™](https://t.me/real_MoviesAdda1)</b> ↭ 🔥")
BATCH_FILE_CAPTION = environ.get("BATCH_FILE_CAPTION", "⚡<b>File uploaded by [Movies Adaa™](https://t.me/real_MoviesAdda1)</b>⚡\n\nName: {file_caption} \n\n⚙️ <b>Size: </b><code>{file_size}</code>🔥 ↭ <b>Join Now [MoviesAdda™](https://t.me/real_MoviesAdda1)</b> ↭ 🔥")
Expand Down Expand Up @@ -72,7 +72,7 @@ def is_enabled(value, default):
# URL Shortener #

URL_SHORTENR_WEBSITE = environ.get('URL_SHORTENR_WEBSITE', 'api.shareus.in/shortLink')
URL_SHORTNER_WEBSITE_API = environ.get('URL_SHORTNER_WEBSITE_API', 'I3Khu0fwfbWpd1W2ofcyP2znDA12')
URL_SHORTNER_WEBSITE_API = environ.get('URL_SHORTNER_WEBSITE_API', '5O9Ghn3VFPZrlA1mctUclo5amDE2')

# Auto Delete For Group Message (Self Delete) #
SELF_DELETE_SECONDS = int(environ.get('SELF_DELETE_SECONDS', 100))
Expand All @@ -82,10 +82,10 @@ def is_enabled(value, default):

# Download Tutorial Button #
DOWNLOAD_TEXT_NAME = "📥 HOW TO DOWNLOAD 📥"
DOWNLOAD_TEXT_URL = "https://t.me/LazyDeveloper"
DOWNLOAD_TEXT_URL = "https://t.me/imdbott"

# Custom Caption Under Button #
CAPTION_BUTTON = "Get Updates"
CAPTION_BUTTON_URL = "https://t.me/LazyDeveloper"
CAPTION_BUTTON_URL = "https://t.me/imdbott"

# Auto Delete For Bot Sending Files #
9 changes: 1 addition & 8 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
if [ -z $UPSTREAM_REPO ]
then
echo "Cloning main Repository"
git clone https://github.com/LazyDeveloperr/LazyPrincessV2 /LazyPrincessV2
else
echo "Cloning Custom Repo from $UPSTREAM_REPO "
git clone $UPSTREAM_REPO /LazyPrincessV2
fi
git clone https://github.com/LazyDeveloperr/LazyPrincessV2 /LazyPrincessV2
cd /LazyPrincessV2
pip3 install -U -r requirements.txt
echo "Starting Bot...."
Expand Down