Change Api
Signed-off-by: breakdowns <hafitz666@outlook.co.id>
This commit is contained in:
parent
4c61d9d914
commit
a5f743951a
|
|
@ -24,6 +24,8 @@ jobs:
|
||||||
HD_DOWNLOAD_STATUS_UPDATE_INTERVAL: ${{secrets.DOWNLOAD_STATUS_UPDATE_INTERVAL}}
|
HD_DOWNLOAD_STATUS_UPDATE_INTERVAL: ${{secrets.DOWNLOAD_STATUS_UPDATE_INTERVAL}}
|
||||||
HD_IS_TEAM_DRIVE: ${{secrets.IS_TEAM_DRIVE}}
|
HD_IS_TEAM_DRIVE: ${{secrets.IS_TEAM_DRIVE}}
|
||||||
HD_GDRIVE_FOLDER_ID: ${{secrets.GDRIVE_FOLDER_ID}}
|
HD_GDRIVE_FOLDER_ID: ${{secrets.GDRIVE_FOLDER_ID}}
|
||||||
|
HD_HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}}
|
||||||
|
HD_HEROKU_APP_NAME: ${{secrets.HEROKU_APP_NAME}}
|
||||||
HD_OWNER_ID: ${{secrets.OWNER_ID}}
|
HD_OWNER_ID: ${{secrets.OWNER_ID}}
|
||||||
HD_TELEGRAM_API: ${{secrets.TELEGRAM_API}}
|
HD_TELEGRAM_API: ${{secrets.TELEGRAM_API}}
|
||||||
HD_TELEGRAM_HASH: ${{secrets.TELEGRAM_HASH}}
|
HD_TELEGRAM_HASH: ${{secrets.TELEGRAM_HASH}}
|
||||||
|
|
|
||||||
26
README.md
26
README.md
|
|
@ -1,10 +1,10 @@
|
||||||
[](https://youtu.be/Pk_TthHfLeE)
|
[](https://youtu.be/Pk_TthHfLeE)
|
||||||
|
|
||||||
# Slam Mirror Bot
|
# Slam Mirror Bot
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
[](https://t.me/SlamMirrorUpdates)
|
[](https://t.me/SlamMirrorUpdates)
|
||||||
|
|
||||||
|
|
@ -16,12 +16,13 @@
|
||||||
|
|
||||||
## Additional Features
|
## Additional Features
|
||||||
- qBittorrent supported
|
- 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/breakdowns/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/Slam-Team/slam-mirrorbot/tree/master#setting-up-config-file))
|
||||||
- Limiting size Torrent/Direct, Tar/Unzip, Mega, cloning Google Drive support
|
- Limiting size Torrent/Direct, Tar/Unzip, Mega, cloning Google Drive support
|
||||||
- Stop duplicate cloning Google Drive & mirroring Mega support
|
- Stop duplicate cloning Google Drive & mirroring Mega support
|
||||||
- Tar/Unzip Google Drive link support
|
- Tar/Unzip Google Drive link support
|
||||||
- Select files from Torrent before downloading
|
- Select files from Torrent before downloading
|
||||||
- Sudo with Database support
|
- Sudo with Database support
|
||||||
|
- Multiple Trackers support
|
||||||
- Extracting **tar.xz** support
|
- Extracting **tar.xz** support
|
||||||
- Counting Google Drive link
|
- Counting Google Drive link
|
||||||
- Heroku config support
|
- Heroku config support
|
||||||
|
|
@ -75,7 +76,7 @@ Deploying is pretty much straight forward and is divided into several steps as f
|
||||||
|
|
||||||
- Clone this repo:
|
- Clone this repo:
|
||||||
```
|
```
|
||||||
git clone https://github.com/breakdowns/slam-mirrorbot mirrorbot/
|
git clone https://github.com/Slam-Team/slam-mirrorbot mirrorbot/
|
||||||
cd mirrorbot
|
cd mirrorbot
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -134,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_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)
|
- **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)
|
- **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/breakdowns/slam-mirrorbot`.
|
- **UPSTREAM_REPO**: Link for Bot Upstream Repo, if you want default update, fill `https://github.com/Slam-Team/slam-mirrorbot`.
|
||||||
- **UPSTREAM_BRANCH**: Branch name for Bot Upstream Repo, fill `master`.
|
- **UPSTREAM_BRANCH**: Branch name for Bot Upstream Repo, fill `master`.
|
||||||
### Optional Field
|
### 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.
|
- **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.
|
- **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/breakdowns/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/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).
|
||||||
- **AUTHORIZED_CHATS**: Fill user_id and chat_id (not username) of you want to authorize, Seprate them with space, Examples: `-0123456789 -1122334455 6915401739`.
|
- **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).
|
- **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.
|
- **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/breakdowns/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/Slam-Team/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 '/'
|
- **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_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)
|
- **MEGA_EMAIL_ID**: Your email id you used to sign up on mega.nz for using premium accounts (Leave th)
|
||||||
|
|
@ -214,7 +215,7 @@ sudo docker run mirrorbot
|
||||||
```
|
```
|
||||||
|
|
||||||
## Deploying on Heroku with Github Workflow
|
## Deploying on Heroku with Github Workflow
|
||||||
<p><a href="https://github.com/breakdowns/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/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>
|
||||||
|
|
||||||
## Deploying on Heroku with heroku-cli and Goorm IDE
|
## 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>
|
<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>
|
||||||
|
|
@ -284,7 +285,7 @@ python3 gen_sa_accounts.py --download-keys project_id
|
||||||
python3 add_to_team_drive.py -d SharedTeamDriveSrcID
|
python3 add_to_team_drive.py -d SharedTeamDriveSrcID
|
||||||
```
|
```
|
||||||
|
|
||||||
# Youtube-dl authentication using [.netrc](https://github.com/breakdowns/slam-mirrorbot/blob/master/.netrc) file
|
# Youtube-dl authentication using [.netrc](https://github.com/Slam-Team/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:
|
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
|
machine host login username password my_youtube_password
|
||||||
|
|
@ -307,5 +308,6 @@ Thanks to:
|
||||||
- [anasty17](https://github.com/anasty17) for some features & help
|
- [anasty17](https://github.com/anasty17) for some features & help
|
||||||
- [breakdowns](https://github.com/breakdowns) for slam-mirrorbot
|
- [breakdowns](https://github.com/breakdowns) for slam-mirrorbot
|
||||||
- [zevtyardt](https://github.com/zevtyardt) for some direct links
|
- [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/breakdowns/slam-mirrorbot/graphs/contributors).
|
And many more people who aren't mentioned here, but may be found in [Contributors](https://github.com/Slam-Team/slam-mirrorbot/graphs/contributors).
|
||||||
|
|
|
||||||
4
alive.py
4
alive.py
|
|
@ -1,5 +1,5 @@
|
||||||
# Implement By - @anasty17 (https://github.com/breakdowns/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
||||||
# (c) https://github.com/breakdowns/slam-mirrorbot
|
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,9 @@ This bot can mirror all your links to Google Drive!
|
||||||
Type /{BotCommands.HelpCommand} to get a list of available commands
|
Type /{BotCommands.HelpCommand} to get a list of available commands
|
||||||
'''
|
'''
|
||||||
buttons = button_build.ButtonMaker()
|
buttons = button_build.ButtonMaker()
|
||||||
buttons.buildbutton("Repo", "https://github.com/breakdowns/slam-mirrorbot")
|
buttons.buildbutton("Repo", "https://github.com/Slam-Team/slam-mirrorbot")
|
||||||
buttons.buildbutton("Channel", "https://t.me/SlamMirrorUpdates")
|
buttons.buildbutton("Channel", "https://t.me/SlamMirrorUpdates")
|
||||||
reply_markup = InlineKeyboardMarkup(buttons.build_menu(2))
|
reply_markup = InlineKeyboardMarkup(buttons.build_menu(2))
|
||||||
LOGGER.info('UID: {} - UN: {} - MSG: {}'.format(update.message.chat.id, update.message.chat.username, update.message.text))
|
|
||||||
uptime = get_readable_time((time.time() - botStartTime))
|
uptime = get_readable_time((time.time() - botStartTime))
|
||||||
if CustomFilters.authorized_user(update) or CustomFilters.authorized_chat(update):
|
if CustomFilters.authorized_user(update) or CustomFilters.authorized_chat(update):
|
||||||
if update.message.chat.type == "private" :
|
if update.message.chat.type == "private" :
|
||||||
|
|
@ -187,8 +186,8 @@ botcmds = [
|
||||||
(f'{BotCommands.HelpCommand}','Get Detailed Help'),
|
(f'{BotCommands.HelpCommand}','Get Detailed Help'),
|
||||||
(f'{BotCommands.MirrorCommand}', 'Start Mirroring'),
|
(f'{BotCommands.MirrorCommand}', 'Start Mirroring'),
|
||||||
(f'{BotCommands.TarMirrorCommand}','Start mirroring and upload as .tar'),
|
(f'{BotCommands.TarMirrorCommand}','Start mirroring and upload as .tar'),
|
||||||
(f'{BotCommands.UnzipMirrorCommand}','Extract files'),
|
|
||||||
(f'{BotCommands.ZipMirrorCommand}','Start mirroring and upload as .zip'),
|
(f'{BotCommands.ZipMirrorCommand}','Start mirroring and upload as .zip'),
|
||||||
|
(f'{BotCommands.UnzipMirrorCommand}','Extract files'),
|
||||||
(f'{BotCommands.CloneCommand}','Copy file/folder to Drive'),
|
(f'{BotCommands.CloneCommand}','Copy file/folder to Drive'),
|
||||||
(f'{BotCommands.CountCommand}','Count file/folder of Drive link'),
|
(f'{BotCommands.CountCommand}','Count file/folder of Drive link'),
|
||||||
(f'{BotCommands.DeleteCommand}','Delete file from Drive'),
|
(f'{BotCommands.DeleteCommand}','Delete file from Drive'),
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Implement By - @anasty17 (https://github.com/breakdowns/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
||||||
# (c) https://github.com/breakdowns/slam-mirrorbot
|
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Implement By - @anasty17 (https://github.com/breakdowns/slam-mirrorbot/commit/80d33430715b4296cd253f62cefc089a81937ebf)
|
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/commit/80d33430715b4296cd253f62cefc089a81937ebf)
|
||||||
# (c) https://github.com/breakdowns/slam-mirrorbot
|
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
|
|
||||||
from .status import Status
|
from .status import Status
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Implement By - @anasty17 (https://github.com/breakdowns/slam-mirrorbot/pull/220)
|
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/pull/220)
|
||||||
# (c) https://github.com/breakdowns/slam-mirrorbot
|
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
|
|
||||||
from .status import Status
|
from .status import Status
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Implement By - @anasty17 (https://github.com/breakdowns/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/commit/0bfba523f095ab1dccad431d72561e0e002e7a59)
|
||||||
# (c) https://github.com/breakdowns/slam-mirrorbot
|
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
|
|
||||||
from bot import DOWNLOAD_DIR, LOGGER, get_client
|
from bot import DOWNLOAD_DIR, LOGGER, get_client
|
||||||
|
|
|
||||||
|
|
@ -559,7 +559,7 @@ class GoogleDriveHelper:
|
||||||
Telegraph(access_token=telegraph_token).edit_page(path = self.path[prev_page],
|
Telegraph(access_token=telegraph_token).edit_page(path = self.path[prev_page],
|
||||||
title = 'Slam Mirrorbot Search',
|
title = 'Slam Mirrorbot Search',
|
||||||
author_name='Slam Mirrorbot',
|
author_name='Slam Mirrorbot',
|
||||||
author_url='https://github.com/breakdowns/slam-mirrorbot',
|
author_url='https://github.com/Slam-Team/slam-mirrorbot',
|
||||||
html_content=content)
|
html_content=content)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
@ -644,7 +644,7 @@ class GoogleDriveHelper:
|
||||||
self.path.append(Telegraph(access_token=telegraph_token).create_page(
|
self.path.append(Telegraph(access_token=telegraph_token).create_page(
|
||||||
title = 'Slam Mirrorbot Search',
|
title = 'Slam Mirrorbot Search',
|
||||||
author_name='Slam Mirrorbot',
|
author_name='Slam Mirrorbot',
|
||||||
author_url='https://github.com/breakdowns/slam-mirrorbot',
|
author_url='https://github.com/Slam-Team/slam-mirrorbot',
|
||||||
html_content=content
|
html_content=content
|
||||||
)['path'])
|
)['path'])
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Implement By - @anasty17 (https://github.com/breakdowns/slam-mirrorbot/pull/111)
|
# Implement By - @anasty17 (https://github.com/Slam-Team/slam-mirrorbot/pull/111)
|
||||||
# (c) https://github.com/breakdowns/slam-mirrorbot
|
# (c) https://github.com/Slam-Team/slam-mirrorbot
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
|
|
||||||
from telegram.ext import CommandHandler
|
from telegram.ext import CommandHandler
|
||||||
|
|
|
||||||
|
|
@ -304,14 +304,14 @@ RESULT_STR_ALL = (
|
||||||
)
|
)
|
||||||
|
|
||||||
torrents_dict = {
|
torrents_dict = {
|
||||||
'1337x': {'source': "https://torrenter-api.herokuapp.com/api/1337x/", 'result_str': RESULT_STR_1337},
|
'1337x': {'source': "https://slam-api.herokuapp.com/api/1337x/", 'result_str': RESULT_STR_1337},
|
||||||
'piratebay': {'source': "https://torrenter-api.herokuapp.com/api/piratebay/", 'result_str': RESULT_STR_PIRATEBAY},
|
'piratebay': {'source': "https://slam-api.herokuapp.com/api/piratebay/", 'result_str': RESULT_STR_PIRATEBAY},
|
||||||
'tgx': {'source': "https://torrenter-api.herokuapp.com/api/tgx/", 'result_str': RESULT_STR_TGX},
|
'tgx': {'source': "https://slam-api.herokuapp.com/api/tgx/", 'result_str': RESULT_STR_TGX},
|
||||||
'yts': {'source': "https://torrenter-api.herokuapp.com/api/yts/", 'result_str': RESULT_STR_YTS},
|
'yts': {'source': "https://slam-api.herokuapp.com/api/yts/", 'result_str': RESULT_STR_YTS},
|
||||||
'eztv': {'source': "https://torrenter-api.herokuapp.com/api/eztv/", 'result_str': RESULT_STR_EZTV},
|
'eztv': {'source': "https://slam-api.herokuapp.com/api/eztv/", 'result_str': RESULT_STR_EZTV},
|
||||||
'torlock': {'source': "https://torrenter-api.herokuapp.com/api/torlock/", 'result_str': RESULT_STR_TORLOCK},
|
'torlock': {'source': "https://slam-api.herokuapp.com/api/torlock/", 'result_str': RESULT_STR_TORLOCK},
|
||||||
'rarbg': {'source': "https://torrenter-api.herokuapp.com/api/rarbg/", 'result_str': RESULT_STR_RARBG},
|
'rarbg': {'source': "https://slam-api.herokuapp.com/api/rarbg/", 'result_str': RESULT_STR_RARBG},
|
||||||
'ts': {'source': "https://torrenter-api.herokuapp.com/api/all/", 'result_str': RESULT_STR_ALL}
|
'ts': {'source': "https://slam-api.herokuapp.com/api/all/", 'result_str': RESULT_STR_ALL}
|
||||||
}
|
}
|
||||||
|
|
||||||
torrent_handlers = []
|
torrent_handlers = []
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ AUTO_DELETE_MESSAGE_DURATION = 20
|
||||||
IS_TEAM_DRIVE = ""
|
IS_TEAM_DRIVE = ""
|
||||||
TELEGRAM_API =
|
TELEGRAM_API =
|
||||||
TELEGRAM_HASH = ""
|
TELEGRAM_HASH = ""
|
||||||
UPSTREAM_REPO = "https://github.com/breakdowns/slam-mirrorbot"
|
UPSTREAM_REPO = "https://github.com/Slam-Team/slam-mirrorbot"
|
||||||
UPSTREAM_BRANCH = "master"
|
UPSTREAM_BRANCH = "master"
|
||||||
# OPTIONAL CONFIG
|
# OPTIONAL CONFIG
|
||||||
DATABASE_URL = ""
|
DATABASE_URL = ""
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
1. Give stars and Fork this repo then upload **token.pickle** to your forks, or you can upload your **token.pickle** to your Index and put your **token.pickle** link to **TOKEN_PICKLE_URL** (**NOTE**: If you didn't upload **token.pickle** uploading will not work). How to generate **token.pickle**? [Read here](https://github.com/breakdowns/slam-mirrorbot#getting-google-oauth-api-credential-file)
|
1. Give stars and Fork this repo then upload **token.pickle** to your forks, or you can upload your **token.pickle** to your Index and put your **token.pickle** link to **TOKEN_PICKLE_URL** (**NOTE**: If you didn't upload **token.pickle** uploading will not work). How to generate **token.pickle**? [Read here](https://github.com/Slam-Team/slam-mirrorbot#getting-google-oauth-api-credential-file)
|
||||||
|
|
||||||
2. Go to Repository `Settings` -> `Secrets`
|
2. Go to Repository `Settings` -> `Secrets`
|
||||||
|
|
||||||
|
|
@ -46,9 +46,9 @@
|
||||||
* `DOWNLOAD_DIR` The path to the local folder where the downloads should be downloaded to, Fill `/usr/src/app/downloads`
|
* `DOWNLOAD_DIR` The path to the local folder where the downloads should be downloaded to, Fill `/usr/src/app/downloads`
|
||||||
* `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)
|
* `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)
|
* `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/breakdowns/slam-mirrorbot`
|
* `UPSTREAM_REPO` Link for Bot Upstream Repo, if you want default update, fill `https://github.com/Slam-Team/slam-mirrorbot`
|
||||||
* `UPSTREAM_BRANCH` Branch name for Bot Upstream Repo, fill `master`
|
* `UPSTREAM_BRANCH` Branch name for Bot Upstream Repo, fill `master`
|
||||||
### For Optional Variables you can get from [Here](https://github.com/breakdowns/slam-mirrorbot#setting-up-config-file)
|
### For Optional Variables you can get from [Here](https://github.com/Slam-Team/slam-mirrorbot#setting-up-config-file)
|
||||||
|
|
||||||
4. After adding all the above Required Variables go to Github Actions tab in your repo
|
4. After adding all the above Required Variables go to Github Actions tab in your repo
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@ input[type="submit"]:hover, input[type="submit"]:focus{
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<a href="https://github.com/breakdowns/slam-mirrorbot"><i class="fab fa-github"></i></a>
|
<a href="https://github.com/Slam-Team/slam-mirrorbot"><i class="fab fa-github"></i></a>
|
||||||
<a href="https://t.me/SlamMirrorUpdates"><i class="fab fa-telegram"></i></a>
|
<a href="https://t.me/SlamMirrorUpdates"><i class="fab fa-telegram"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -530,7 +530,7 @@ section span{
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<a href="https://github.com/breakdowns/slam-mirrorbot"><i class="fab fa-github"></i></a>
|
<a href="https://github.com/Slam-Team/slam-mirrorbot"><i class="fab fa-github"></i></a>
|
||||||
<a href="https://t.me/SlamMirrorUpdates"><i class="fab fa-telegram"></i></a>
|
<a href="https://t.me/SlamMirrorUpdates"><i class="fab fa-telegram"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -704,7 +704,7 @@ async def set_priority(request):
|
||||||
@routes.get('/')
|
@routes.get('/')
|
||||||
async def homepage(request):
|
async def homepage(request):
|
||||||
|
|
||||||
return web.Response(text="<h1>See slam-mirrorbot <a href='https://github.com/breakdowns/slam-mirrorbot'>@GitHub</a> By <a href='https://github.com/breakdowns'>Breakdowns</a></h1>", content_type="text/html")
|
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")
|
||||||
|
|
||||||
|
|
||||||
async def e404_middleware(app, handler):
|
async def e404_middleware(app, handler):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue