Change docker

Signed-off-by: breakdowns <hafitz666@outlook.co.id>
This commit is contained in:
Hafitz Setya 2021-08-07 16:08:39 +07:00 committed by GitHub
parent d718831e7c
commit bfeb829ef2
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 22 deletions

View File

@ -1,10 +1,8 @@
FROM anasty17/megasdk:latest
FROM breakdowns/mega-sdk-python:latest
WORKDIR /usr/src/app
RUN chmod 777 /usr/src/app
RUN apt-get install -y wget xz-utils neofetch unzip && apt-get autoremove -y
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt

View File

@ -13,6 +13,7 @@
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/breakdowns/slam-tg-mirror-bot)
![GitHub](https://img.shields.io/github/license/breakdowns/slam-tg-mirror-bot)
[![Channel](https://img.shields.io/badge/Join%20Channel-!-red)](https://t.me/SlamMirrorUpdates)
![Docker Pulls](https://img.shields.io/docker/pulls/breakdowns/mega-sdk-python?label=Docker%20Pull)
**Slam Tg Mirror Bot** is a _multipurpose_ Telegram Bot writen in Python for mirroring files on the Internet to our beloved Google Drive.
@ -165,9 +166,9 @@ Fill up rest of the fields. Meaning of each fields are discussed below:
- **HEROKU_APP_NAME**: (Only if you deploying on Heroku) Your Heroku app name.
- **IGNORE_PENDING_REQUESTS**: If you want the bot to ignore pending requests after it restarts, set this to `True`.
- **STATUS_LIMIT**: Status limit with buttons (**NOTE**: Recommend limit status to `4` tasks max).
- **IS_VPS**: Set it to `True` if you use VPS.
- **SERVER_PORT**: For VPS
- **BASE_URL_OF_BOT**: Your app URL Examples: `https://yourappname.herokuapp.com`
- **IS_VPS**: Set it to `True` if you use VPS
- **SERVER_PORT**: Your VPS port
- **BASE_URL_OF_BOT**: Valid BASE URL of where the bot is deploy. Ip/domain of your bot like `http://myip` or if you have chosen other port then `80` then `http://myip:port`. No slash at the end, for Heroku fill `https://yourappname.herokuapp.com`.
- **SHORTENER_API**: Fill your Shortener api key if you are using Shortener.
- **SHORTENER**: if you want to use Shortener in Gdrive and index link, fill Shortener url here. Examples:
```
@ -175,8 +176,6 @@ exe.io, gplinks.in, shrinkme.io, urlshortx.com, shortzon.com
```
Above are the supported url Shorteners. Except these only some url Shorteners are supported.
**Note**: You can limit maximum concurrent downloads by changing the value of **MAX_CONCURRENT_DOWNLOADS** in aria.sh. By default, it's set to `7`.
### Add more buttons (Optional Field)
Three buttons are already added of Drive Link, Index Link, and View Link, you can add extra buttons, if you don't know what are below entries, simply leave them, don't fill anything in them.
- **BUTTON_FOUR_NAME**:

View File

@ -185,19 +185,10 @@
"description": "Status limit with buttons, Recommend limit status to 4 tasks max.",
"required": false
},
"IS_VPS": {
"description": "Only for VPS, fill False.",
"value": "False",
"required": false
},
"SERVER_PORT": {
"description": "Only for VPS, no need to fill it.",
"required": false
},
"BASE_URL_OF_BOT": {
"description": "Heroku App name web url, Examples: https://yourappname.herokuapp.com",
"value": "False",
"required": false
"description": "Enter your Heroku app link to avoid the app from sleeping and to make it work with Torrent selection",
"value": "https://yourappname.herokuapp.com",
"required": true
}
},
"addons": [

View File

@ -146,7 +146,7 @@ def bot_help(update, context):
help_string = f'''
/{BotCommands.HelpCommand}: To get this message
/{BotCommands.MirrorCommand} [download_url][magnet_link]: Start mirroring the link to Google Drive. Use /mirror qb to mirror with qBittorrent, and use /mirror qbs to select files before downloading
/{BotCommands.MirrorCommand} [download_url][magnet_link]: Start mirroring the link to Google Drive. Use /{BotCommands.MirrorCommand} qb to mirror with qBittorrent, and use /{BotCommands.MirrorCommand} qbs to select files before downloading
/{BotCommands.TarMirrorCommand} [download_url][magnet_link]: Start mirroring and upload the archived (.tar) version of the download

View File

@ -1,5 +1,5 @@
# Implement By - @anasty17 (https://github.com/breakdowns/slam-tg-mirror-bot/pull/111)
# (c) https://github.com/breakdowns/slam-aria-mirror-bot
# (c) https://github.com/breakdowns/slam-tg-mirror-bot
# All rights reserved
from telegram.ext import CommandHandler