diff --git a/README.md b/README.md index eec1cc9..c0785a6 100644 --- a/README.md +++ b/README.md @@ -120,8 +120,6 @@ pip3 install -r requirements-cli.txt **2. Using Heroku PostgreSQL**
-**NOTE**: If you are deploying on Heroku using Heroku button, no need to generate database manually, because it will automatic generate database when first deploying - ## Setting up config file @@ -141,7 +139,6 @@ Fill up rest of the fields. Meaning of each fields are discussed below: - **TELEGRAM_API**: This is to authenticate to your Telegram account for downloading Telegram files. You can get this from https://my.telegram.org DO NOT put this in quotes. - **TELEGRAM_HASH**: This is to authenticate to your Telegram account for downloading Telegram files. You can get this from https://my.telegram.org - **OWNER_ID**: The Telegram user ID (not username) of the Owner of the bot -- **DATABASE_URL**: Your Database URL. See [Generate Database](https://github.com/breakdowns/slam-mirrorbot/tree/master#generate-database) to generate database. (**NOTE**: If you deploying on Heroku using Heroku button, no need to generate database manually, because it will automatic generate database when first deploying) - **GDRIVE_FOLDER_ID**: This is the folder ID of the Google Drive Folder to which you want to upload all the mirrors. - **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) @@ -151,7 +148,9 @@ Fill up rest of the fields. Meaning of each fields are discussed below: ### Optional Field - **ACCOUNTS_ZIP_URL**: Only if you want to load your Service Account externally from an Index Link. Archive your Service Account json files to a zip file directly (don't archive the accounts folder. Select all the jsons inside and zip them only instead. Name the zip file with whatever you want, it doesn't matter). 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). - **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/breakdowns/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 '/' diff --git a/app.json b/app.json index fa1b1a4..29e5314 100644 --- a/app.json +++ b/app.json @@ -50,8 +50,16 @@ "description": "Whether to use Service Accounts or not. For this to work see 'Using Service Accounts' in repo.", "required": false }, + "DATABASE_URL": { + "description": "Your Database URL. See in repo to generate database.", + "required": false + }, "AUTHORIZED_CHATS": { - "description": "Fill User ID and Chat ID of you want to authorize.", + "description": "Fill User ID and Chat ID of you want to authorize, Seprate them with space.", + "required": false + }, + "SUDO_USERS": { + "description": "Fill user_id (not username) of you want to sudoers, Seprate them with space.", "required": false }, "INDEX_URL": { @@ -201,11 +209,6 @@ "required": false } }, - "addons": [ - { - "plan": "heroku-postgresql" - } - ], "formation": { "worker": { "quantity": 1, diff --git a/config_sample.env b/config_sample.env index 58eaf8b..c19e947 100644 --- a/config_sample.env +++ b/config_sample.env @@ -1,4 +1,4 @@ -#Remove this line before deploying +# Remove this line before deploying _____REMOVE_THIS_LINE_____=True # ENTER BOT TOKEN (Get your BOT_TOKEN by talking to @botfather) @@ -15,8 +15,8 @@ UPSTREAM_REPO = "https://github.com/breakdowns/slam-mirrorbot" UPSTREAM_BRANCH = "master" # OPTIONAL CONFIG DATABASE_URL = "" -AUTHORIZED_CHATS = "" #split by space -SUDO_USERS = "" #split by space +AUTHORIZED_CHATS = "" # Split by space +SUDO_USERS = "" # Split by space IGNORE_PENDING_REQUESTS = "" USE_SERVICE_ACCOUNTS = "" INDEX_URL = "" @@ -54,7 +54,6 @@ BUTTON_FIVE_NAME = "" BUTTON_FIVE_URL = "" BUTTON_SIX_NAME = "" BUTTON_SIX_URL = "" -# Single character for finished progress +# Single character for finished & unfinished progress FINISHED_PROGRESS_STR = "●" -# Single character for unfinished progress UNFINISHED_PROGRESS_STR = "○"