Organization name changed
Signed-off-by: breakdowns <hafitz666@outlook.co.id>
This commit is contained in:
parent
8ea953b8fa
commit
97d820574b
24
README.md
24
README.md
|
|
@ -1,10 +1,10 @@
|
|||
[](https://youtu.be/Pk_TthHfLeE)
|
||||
|
||||
# Slam Mirror Bot
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
[](https://t.me/SlamMirrorUpdates)
|
||||
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
## Additional Features
|
||||
- qBittorrent supported
|
||||
- Updater (**NOTE**: You must upload your **token.pickle** to Index and fill your **token.pickle** url to **TOKEN_PICKLE_URL**, because your **token.pickle** will deleted after update, for more info please check [Setting up config file](https://github.com/Slam-Team/slam-mirrorbot/tree/master#setting-up-config-file))
|
||||
- Updater (**NOTE**: You must upload your **token.pickle** to Index and fill your **token.pickle** url to **TOKEN_PICKLE_URL**, because your **token.pickle** will deleted after update, for more info please check [Setting up config file](https://github.com/SlamDevs/slam-mirrorbot/tree/master#setting-up-config-file))
|
||||
- Limiting size Torrent/Direct, Tar/Unzip, Mega, cloning Google Drive support
|
||||
- Stop duplicate cloning Google Drive & mirroring Mega support
|
||||
- Tar/Unzip Google Drive link support
|
||||
|
|
@ -76,7 +76,7 @@ Deploying is pretty much straight forward and is divided into several steps as f
|
|||
|
||||
- Clone this repo:
|
||||
```
|
||||
git clone https://github.com/Slam-Team/slam-mirrorbot mirrorbot/
|
||||
git clone https://github.com/SlamDevs/slam-mirrorbot mirrorbot/
|
||||
cd mirrorbot
|
||||
```
|
||||
|
||||
|
|
@ -135,16 +135,16 @@ Fill up rest of the fields. Meaning of each fields are discussed below:
|
|||
- **DOWNLOAD_DIR**: The path to the local folder where the downloads should be downloaded to
|
||||
- **DOWNLOAD_STATUS_UPDATE_INTERVAL**: A short interval of time in seconds after which the Mirror progress message is updated. (I recommend to keep it `5` seconds at least)
|
||||
- **AUTO_DELETE_MESSAGE_DURATION**: Interval of time (in seconds), after which the bot deletes it's message (and command message) which is expected to be viewed instantly. (**Note**: Set to `-1` to never automatically delete messages)
|
||||
- **UPSTREAM_REPO**: Link for Bot Upstream Repo, if you want default update, fill `https://github.com/Slam-Team/slam-mirrorbot`.
|
||||
- **UPSTREAM_REPO**: Link for Bot Upstream Repo, if you want default update, fill `https://github.com/SlamDevs/slam-mirrorbot`.
|
||||
- **UPSTREAM_BRANCH**: Branch name for Bot Upstream Repo, fill `master`.
|
||||
### Optional Field
|
||||
- **ACCOUNTS_ZIP_URL**: Only if you want to load your Service Account externally from an Index Link. Archive the accounts folder to a zip file. Fill this with the direct link of that file.
|
||||
- **TOKEN_PICKLE_URL**: Only if you want to load your **token.pickle** externally from an Index Link. Fill this with the direct link of that file.
|
||||
- **DATABASE_URL**: Your Database URL. See [Generate Database](https://github.com/Slam-Team/slam-mirrorbot/tree/master#generate-database) to generate database (**NOTE**: If you use database you can save your sudo id permanent using `/addsudo` command).
|
||||
- **DATABASE_URL**: Your Database URL. See [Generate Database](https://github.com/SlamDevs/slam-mirrorbot/tree/master#generate-database) to generate database (**NOTE**: If you use database you can save your sudo id permanent using `/addsudo` command).
|
||||
- **AUTHORIZED_CHATS**: Fill user_id and chat_id (not username) of you want to authorize, Seprate them with space, Examples: `-0123456789 -1122334455 6915401739`.
|
||||
- **SUDO_USERS**: Fill user_id (not username) of you want to sudoers, Seprate them with space, Examples: `0123456789 1122334455 6915401739` (**NOTE**: If you want save sudo id permanent without database, you must fill your sudo id there).
|
||||
- **IS_TEAM_DRIVE**: Set to `True` if `GDRIVE_FOLDER_ID` is from a Team Drive else `False` or Leave it empty.
|
||||
- **USE_SERVICE_ACCOUNTS**: (Leave empty if unsure) Whether to use Service Accounts or not. For this to work see [Using Service Accounts](https://github.com/Slam-Team/slam-mirrorbot#generate-service-accounts-what-is-service-account) section below.
|
||||
- **USE_SERVICE_ACCOUNTS**: (Leave empty if unsure) Whether to use Service Accounts or not. For this to work see [Using Service Accounts](https://github.com/SlamDevs/slam-mirrorbot#generate-service-accounts-what-is-service-account) section below.
|
||||
- **INDEX_URL**: Refer to https://gitlab.com/ParveenBhadooOfficial/Google-Drive-Index The URL should not have any trailing '/'
|
||||
- **MEGA_API_KEY**: Mega.nz api key to mirror mega.nz links. Get it from [Mega SDK Page](https://mega.nz/sdk)
|
||||
- **MEGA_EMAIL_ID**: Your email id you used to sign up on mega.nz for using premium accounts (Leave th)
|
||||
|
|
@ -215,7 +215,7 @@ sudo docker run mirrorbot
|
|||
```
|
||||
|
||||
## Deploying on Heroku with Github Workflow
|
||||
<p><a href="https://github.com/Slam-Team/slam-mirrorbot/blob/master/heroku-guide.md"> <img src="https://img.shields.io/badge/Deploy%20Guide-blueviolet?style=for-the-badge&logo=heroku" width="180""/></a></p>
|
||||
<p><a href="https://github.com/SlamDevs/slam-mirrorbot/blob/master/heroku-guide.md"> <img src="https://img.shields.io/badge/Deploy%20Guide-blueviolet?style=for-the-badge&logo=heroku" width="180""/></a></p>
|
||||
|
||||
## Deploying on Heroku with heroku-cli and Goorm IDE
|
||||
<p><a href="https://telegra.ph/How-to-Deploy-a-Mirror-Bot-to-Heroku-with-CLI-05-06"> <img src="https://img.shields.io/badge/see%20on%20telegraph-grey?style=for-the-badge" width="190""/></a></p>
|
||||
|
|
@ -285,7 +285,7 @@ python3 gen_sa_accounts.py --download-keys project_id
|
|||
python3 add_to_team_drive.py -d SharedTeamDriveSrcID
|
||||
```
|
||||
|
||||
# Youtube-dl authentication using [.netrc](https://github.com/Slam-Team/slam-mirrorbot/blob/master/.netrc) file
|
||||
# Youtube-dl authentication using [.netrc](https://github.com/SlamDevs/slam-mirrorbot/blob/master/.netrc) file
|
||||
For using your premium accounts in Youtube-dl or for protected Index Links, edit the netrc file according to following format:
|
||||
```
|
||||
machine host login username password my_youtube_password
|
||||
|
|
@ -310,4 +310,4 @@ Thanks to:
|
|||
- [zevtyardt](https://github.com/zevtyardt) for some direct links
|
||||
- [yash-dk](https://github.com/yash-dk) for implementation qBittorrent on Python
|
||||
|
||||
And many more people who aren't mentioned here, but may be found in [Contributors](https://github.com/Slam-Team/slam-mirrorbot/graphs/contributors).
|
||||
And many more people who aren't mentioned here, but may be found in [Contributors](https://github.com/SlamDevs/slam-mirrorbot/graphs/contributors).
|
||||
|
|
|
|||
4
alive.py
4
alive.py
|
|
@ -1,5 +1,5 @@
|
|||
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
||||
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||
# Implement By - @anasty17 (https://github.com/SlamDevs/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
||||
# (c) https://github.com/SlamDevs/slam-mirrorbot
|
||||
# All rights reserved
|
||||
|
||||
import time
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ This bot can mirror all your links to Google Drive!
|
|||
Type /{BotCommands.HelpCommand} to get a list of available commands
|
||||
'''
|
||||
buttons = button_build.ButtonMaker()
|
||||
buttons.buildbutton("Repo", "https://github.com/Slam-Team/slam-mirrorbot")
|
||||
buttons.buildbutton("Repo", "https://github.com/SlamDevs/slam-mirrorbot")
|
||||
buttons.buildbutton("Channel", "https://t.me/SlamMirrorUpdates")
|
||||
reply_markup = InlineKeyboardMarkup(buttons.build_menu(2))
|
||||
if CustomFilters.authorized_user(update) or CustomFilters.authorized_chat(update):
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ def github(url: str) -> str:
|
|||
def hxfile(url: str) -> str:
|
||||
""" Hxfile direct link generator
|
||||
Based on https://github.com/zevtyardt/lk21
|
||||
https://github.com/Slam-Team/slam-mirrorbot """
|
||||
https://github.com/SlamDevs/slam-mirrorbot """
|
||||
bypasser = lk21.Bypass()
|
||||
dl_url=bypasser.bypass_filesIm(url)
|
||||
return dl_url
|
||||
|
|
@ -218,7 +218,7 @@ def hxfile(url: str) -> str:
|
|||
def anonfiles(url: str) -> str:
|
||||
""" Anonfiles direct link generator
|
||||
Based on https://github.com/zevtyardt/lk21
|
||||
https://github.com/Slam-Team/slam-mirrorbot """
|
||||
https://github.com/SlamDevs/slam-mirrorbot """
|
||||
bypasser = lk21.Bypass()
|
||||
dl_url=bypasser.bypass_anonfiles(url)
|
||||
return dl_url
|
||||
|
|
@ -227,7 +227,7 @@ def anonfiles(url: str) -> str:
|
|||
def letsupload(url: str) -> str:
|
||||
""" Letsupload direct link generator
|
||||
Based on https://github.com/zevtyardt/lk21
|
||||
https://github.com/Slam-Team/slam-mirrorbot """
|
||||
https://github.com/SlamDevs/slam-mirrorbot """
|
||||
dl_url = ''
|
||||
try:
|
||||
link = re.findall(r'\bhttps?://.*letsupload\.io\S+', url)[0]
|
||||
|
|
@ -241,7 +241,7 @@ def letsupload(url: str) -> str:
|
|||
def fembed(link: str) -> str:
|
||||
""" Fembed direct link generator
|
||||
Based on https://github.com/zevtyardt/lk21
|
||||
https://github.com/Slam-Team/slam-mirrorbot """
|
||||
https://github.com/SlamDevs/slam-mirrorbot """
|
||||
bypasser = lk21.Bypass()
|
||||
dl_url=bypasser.bypass_fembed(link)
|
||||
lst_link = []
|
||||
|
|
@ -254,7 +254,7 @@ def fembed(link: str) -> str:
|
|||
def sbembed(link: str) -> str:
|
||||
""" Sbembed direct link generator
|
||||
Based on https://github.com/zevtyardt/lk21
|
||||
https://github.com/Slam-Team/slam-mirrorbot """
|
||||
https://github.com/SlamDevs/slam-mirrorbot """
|
||||
bypasser = lk21.Bypass()
|
||||
dl_url=bypasser.bypass_sbembed(link)
|
||||
lst_link = []
|
||||
|
|
@ -295,7 +295,7 @@ def pixeldrain(url: str) -> str:
|
|||
def antfiles(url: str) -> str:
|
||||
""" Antfiles direct link generator
|
||||
Based on https://github.com/zevtyardt/lk21
|
||||
https://github.com/breakdowns/slam-mirrorbot """
|
||||
https://github.com/SlamDevs/slam-mirrorbot """
|
||||
bypasser = lk21.Bypass()
|
||||
dl_url=bypasser.bypass_antfiles(url)
|
||||
return dl_url
|
||||
|
|
@ -304,7 +304,7 @@ def antfiles(url: str) -> str:
|
|||
def streamtape(url: str) -> str:
|
||||
""" Streamtape direct link generator
|
||||
Based on https://github.com/zevtyardt/lk21
|
||||
https://github.com/Slam-Team/slam-mirrorbot """
|
||||
https://github.com/SlamDevs/slam-mirrorbot """
|
||||
bypasser = lk21.Bypass()
|
||||
dl_url=bypasser.bypass_streamtape(url)
|
||||
return dl_url
|
||||
|
|
@ -312,7 +312,7 @@ def streamtape(url: str) -> str:
|
|||
|
||||
def racaty(url: str) -> str:
|
||||
""" Racaty direct links generator
|
||||
based on https://github.com/Slam-Team/slam-mirrorbot """
|
||||
based on https://github.com/SlamDevs/slam-mirrorbot """
|
||||
dl_url = ''
|
||||
try:
|
||||
link = re.findall(r'\bhttps?://.*racaty\.net\S+', url)[0]
|
||||
|
|
@ -332,7 +332,7 @@ def racaty(url: str) -> str:
|
|||
def fichier(link: str) -> str:
|
||||
""" 1Fichier direct links generator
|
||||
Based on https://github.com/Maujar
|
||||
https://github.com/Slam-Team/slam-mirrorbot """
|
||||
https://github.com/SlamDevs/slam-mirrorbot """
|
||||
regex = r"^([http:\/\/|https:\/\/]+)?.*1fichier\.com\/\?.+"
|
||||
gan = re.match(regex, link)
|
||||
if not gan:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
||||
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||
# Implement By - @anasty17 (https://github.com/SlamDevs/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
||||
# (c) https://github.com/SlamDevs/slam-mirrorbot
|
||||
# All rights reserved
|
||||
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/commit/80d33430715b4296cd253f62cefc089a81937ebf)
|
||||
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||
# Implement By - @anasty17 (https://github.com/SlamDevs/slam-mirrorbot/commit/80d33430715b4296cd253f62cefc089a81937ebf)
|
||||
# (c) https://github.com/SlamDevs/slam-mirrorbot
|
||||
# All rights reserved
|
||||
|
||||
from .status import Status
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/pull/220)
|
||||
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||
# Implement By - @anasty17 (https://github.com/SlamDevs/slam-mirrorbot/pull/220)
|
||||
# (c) https://github.com/SlamDevs/slam-mirrorbot
|
||||
# All rights reserved
|
||||
|
||||
from .status import Status
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
||||
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||
# Implement By - @anasty17 (https://github.com/SlamDevs/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
||||
# (c) https://github.com/SlamDevs/slam-mirrorbot
|
||||
# All rights reserved
|
||||
|
||||
from bot import DOWNLOAD_DIR, LOGGER, get_client
|
||||
|
|
|
|||
|
|
@ -560,7 +560,7 @@ class GoogleDriveHelper:
|
|||
Telegraph(access_token=telegraph_token).edit_page(path = self.path[prev_page],
|
||||
title = 'Slam Mirrorbot Search',
|
||||
author_name='Slam Mirrorbot',
|
||||
author_url='https://github.com/Slam-Team/slam-mirrorbot',
|
||||
author_url='https://github.com/SlamDevs/slam-mirrorbot',
|
||||
html_content=content)
|
||||
return
|
||||
|
||||
|
|
@ -645,7 +645,7 @@ class GoogleDriveHelper:
|
|||
self.path.append(Telegraph(access_token=telegraph_token).create_page(
|
||||
title = 'Slam Mirrorbot Search',
|
||||
author_name='Slam Mirrorbot',
|
||||
author_url='https://github.com/Slam-Team/slam-mirrorbot',
|
||||
author_url='https://github.com/SlamDevs/slam-mirrorbot',
|
||||
html_content=content
|
||||
)['path'])
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/pull/111)
|
||||
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||
# Implement By - @anasty17 (https://github.com/SlamDevs/slam-mirrorbot/pull/111)
|
||||
# (c) https://github.com/SlamDevs/slam-mirrorbot
|
||||
# All rights reserved
|
||||
|
||||
from telegram.ext import CommandHandler
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ AUTO_DELETE_MESSAGE_DURATION = 20
|
|||
IS_TEAM_DRIVE = ""
|
||||
TELEGRAM_API =
|
||||
TELEGRAM_HASH = ""
|
||||
UPSTREAM_REPO = "https://github.com/Slam-Team/slam-mirrorbot"
|
||||
UPSTREAM_REPO = "https://github.com/SlamDevs/slam-mirrorbot"
|
||||
UPSTREAM_BRANCH = "master"
|
||||
# OPTIONAL CONFIG
|
||||
DATABASE_URL = ""
|
||||
|
|
@ -43,7 +43,7 @@ TORRENT_DIRECT_LIMIT = ""
|
|||
TAR_UNZIP_LIMIT = ""
|
||||
CLONE_LIMIT = ""
|
||||
MEGA_LIMIT = ""
|
||||
# Fill only if you deploying with heroku-cli and Goorm IDE
|
||||
# Required for Heroku
|
||||
HEROKU_API_KEY = ""
|
||||
HEROKU_APP_NAME = ""
|
||||
# View Link button to open file Index Link in browser instead of direct download link
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Pre-requisites
|
||||
|
||||
- [token.pickle](https://github.com/Slam-Team/slam-mirrorbot#getting-google-oauth-api-credential-file)
|
||||
- [token.pickle](https://github.com/SlamDevs/slam-mirrorbot#getting-google-oauth-api-credential-file)
|
||||
- [Heroku](heroku.com) accounts
|
||||
- Recommended to use 1 App in 1 Heroku account
|
||||
- Don't use bin/fake credits card, because your Heroku account will get banned.
|
||||
|
|
|
|||
10
wserver.py
10
wserver.py
|
|
@ -205,7 +205,7 @@ input[type="submit"]:hover, input[type="submit"]:focus{
|
|||
</a>
|
||||
</div>
|
||||
<div class="social">
|
||||
<a href="https://github.com/Slam-Team/slam-mirrorbot"><i class="fab fa-github"></i></a>
|
||||
<a href="https://github.com/SlamDevs/slam-mirrorbot"><i class="fab fa-github"></i></a>
|
||||
<a href="https://t.me/SlamMirrorUpdates"><i class="fab fa-telegram"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
|
@ -530,7 +530,7 @@ section span{
|
|||
</a>
|
||||
</div>
|
||||
<div class="social">
|
||||
<a href="https://github.com/Slam-Team/slam-mirrorbot"><i class="fab fa-github"></i></a>
|
||||
<a href="https://github.com/SlamDevs/slam-mirrorbot"><i class="fab fa-github"></i></a>
|
||||
<a href="https://t.me/SlamMirrorUpdates"><i class="fab fa-telegram"></i></a>
|
||||
</div>
|
||||
</header>
|
||||
|
|
@ -541,7 +541,7 @@ section span{
|
|||
<input
|
||||
type="text"
|
||||
name="pin_code"
|
||||
placeholder="Enter the code that you have got from telegram to access the torrent"
|
||||
placeholder="Enter the code that you have got from Telegram to access the Torrent"
|
||||
/>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
|
|
@ -696,7 +696,7 @@ async def set_priority(request):
|
|||
|
||||
await asyncio.sleep(2)
|
||||
if not await re_verfiy(pause, resume, client, torr):
|
||||
LOGGER.error("The torrent choose errored reverification failed")
|
||||
LOGGER.error("The Torrent choose errored reverification failed")
|
||||
client.auth_log_out()
|
||||
return await list_torrent_contents(request)
|
||||
|
||||
|
|
@ -704,7 +704,7 @@ async def set_priority(request):
|
|||
@routes.get('/')
|
||||
async def homepage(request):
|
||||
|
||||
return web.Response(text="<h1>See slam-mirrorbot <a href='https://github.com/Slam-Team/slam-mirrorbot'>@GitHub</a> By <a href='https://github.com/Slam-Team'>Slam-Team</a></h1>", content_type="text/html")
|
||||
return web.Response(text="<h1>See slam-mirrorbot <a href='https://github.com/SlamDevs/slam-mirrorbot'>@GitHub</a> By <a href='https://github.com/SlamDevs'>SlamDevs</a></h1>", content_type="text/html")
|
||||
|
||||
|
||||
async def e404_middleware(app, handler):
|
||||
|
|
|
|||
Loading…
Reference in New Issue