Skip to content

Commit

Permalink
Added Deploy To Heroku Using GitHub Work-Flows & Added a Guide To Dep…
Browse files Browse the repository at this point in the history
…loy (MaxxRider#31)
  • Loading branch information
KGK06 authored Sep 1, 2021
1 parent 09300b0 commit 1cf9c85
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
![MAXX LEECH V2](https://telegra.ph/file/af8f0596124714a17e4e2.png)

👉 [Orginal Repository](https://github.com/gautamajay52/TorrentLeech-Gdrive)
## 👉 [Orginal Repository](https://github.com/gautamajay52/TorrentLeech-Gdrive)

![Maxx](https://telegra.ph/file/d18fa7fa33f26f733adb9.png)

#<b>Don't Kill Heroku please ☹️</b>
## **Don't Kill Heroku please ☹️**

[![MAXX LEECH](https://telegra.ph/file/29d788a656dd517eafd0a.png)](https://telegram.dog/MaxxBots)

Expand Down Expand Up @@ -120,7 +120,7 @@
🤧 <b> Before Deploy 𝗣𝗹𝗲𝗮𝘀𝗲 𝗛𝗶𝘁 𝗦𝘁𝗮𝗿 ★ else you are Gay</b>


<p><a href="https://heroku.com/deploy?template=https://github.com/MaxxRider/Leech-Pro/tree/master)"> <img src="https://img.shields.io/badge/Deploy%20To%20Heroku-blueviolet?style=for-the-badge&logo=heroku" width="200""/></a></p>
<p><a href="https://github.com/KGK06/Leech-Pro/wiki/Deploy-To-Heroku"> <img src=https://img.shields.io/badge/Deploy%20Guide-blueviolet?style=for-the-badge&logo=heroku" width="200"</a></p>


[![MaxxRider](https://telegra.ph/file/aac59f2f35ee73b63019e.png)](https://telegram.dog/MaxxRiderz)]
Expand Down
45 changes: 33 additions & 12 deletions sample_config.env
Original file line number Diff line number Diff line change
@@ -1,27 +1,48 @@
# Read Readme before doing anything
# READ README.md BEFORE DOING THIS


#________COMPULSORY____________
#________COMPULSORY____________#

TG_BOT_TOKEN= ""
TG_BOT_TOKEN= "" # ENTER BOT TOKEN (Get your BOT_TOKEN by talking to @botfather)
APP_ID =
API_HASH = ""
OWNER_ID =
AUTH_CHANNEL = "" #Add IDs separated by a SPACE (Like :: -10012503747 -10012586941 539295917)

# Add different ID separated by a SPACE (Like :: AUTH_CHANNEL = -10012503747 -10012586941 539295917)
AUTH_CHANNEL =


#__________NOT ________COMPULSORY____________ ::
#________NOT COMPULSORY____________#

# For RCLONE ::
# Name of the folder....not ID
DESTINATION_FOLDER = "TorrentLeech-Gdrive"
INDEX_LINK = ""

# OTHERS ::
EDIT_SLEEP_TIME_OUT = 15
MAX_TG_SPLIT_FILE_SIZE = 1072864000

#_____There are other vars too_____Read Readme to Know better____
#_____And fill them as new line if needed :)
DEF_THUMB_NAIL_VID_S = ""
ARIA_TWO_STARTED_PORT = "6800"
EDIT_SLEEP_TIME_OUT = "15"
MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START = 600
MAX_TG_SPLIT_FILE_SIZE = "2097152000"

FINISHED_PROGRESS_STR = ""
UN_FINISHED_PROGRESS_STR = ""

CUSTOM_FILE_NAME = ""

UPLOAD_AS_DOC = ""

# Commands Customization (Completely Optional)
# If you want to change
LEECH_COMMAND = ""
YTDL_COMMAND = ""
GYTDL_COMMAND = ""
GLEECH_COMMAND = ""
TELEGRAM_LEECH_COMMAND = ""
TELEGRAM_LEECH_UNZIP_COMMAND = ""
PYTDL_COMMAND = ""
CLONE_COMMAND_G = ""
UPLOAD_COMMAND = ""
RENEWME_COMMAND = ""
SAVE_THUMBNAIL = ""
CLEAR_THUMBNAIL = ""
GET_SIZE_G = ""
13 changes: 10 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ ran=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 12 | head -n 1)
###### Done Addding Files ######


if [[ -n $RCLONE_CONFIG ]]; then
echo "Rclone config detected"
echo -e "$RCLONE_CONFIG" > /app/rclone.conf
if [[ -n $RCLONE_CONFIG_URL ]]; then
echo "Rclone config detected 📁📁"
wget -q $RCLONE_CONFIG_URL -O /app/rclone.conf
fi

if [[ -n $CONFIG_ENV_URL ]]; then
echo " Found config.env File 📁📁 "
wget -q $CONFIG_ENV_URL -O /app/config.env
fi



echo "Starting Your Bot... 👾👾"
python3 -m tobrot

0 comments on commit 1cf9c85

Please sign in to comment.