From d6ee2c16e07dac0f15628b362c1124fd55262196 Mon Sep 17 00:00:00 2001 From: Shrimadhav U K Date: Sat, 8 Aug 2020 22:43:09 +0530 Subject: [PATCH] update README --- Dockerfile | 19 ++++++++++++++++++- README.md | 15 +++++---------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec30f0eb..1b03808b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,38 @@ -FROM ubuntu:20.04 +# creates a layer from the ubuntu:18.04 Docker image. +FROM ubuntu:18.04 WORKDIR /app +# to resynchronize the package index files from their sources. RUN apt -qq update +# http://bugs.python.org/issue19846 +# https://github.com/SpEcHiDe/PublicLeech/pull/97 +ENV LANG C.UTF-8 + +# sets the TimeZon, to be used inside the container ENV TZ Asia/Kolkata + +# we don't have an interactive xTerm ENV DEBIAN_FRONTEND noninteractive +# install required packages RUN apt -qq install -y curl git gnupg2 wget \ apt-transport-https \ python3 python3-pip \ coreutils aria2 jq pv \ ffmpeg mediainfo rclone +# each instruction creates one layer +# Only the instructions RUN, COPY, ADD create layers. +# copies 'requirements', to inside the container COPY requirements.txt . + +# install requirements, inside the container RUN pip3 install --no-cache-dir -r requirements.txt +# adds files from your Docker client’s current directory. COPY . . +# specifies what command to run within the container. CMD ["python3", "-m", "tobrot"] diff --git a/README.md b/README.md index 267acbb3..1909f069 100644 --- a/README.md +++ b/README.md @@ -105,21 +105,16 @@ You can add multiple IDs seperated by space. * send any link, and click on the available buttons. - due to ~~Telegram~~ limitations, the buttons will only work, if the bot was created by you, or you are in the same region as the Telegram bot creator. +* if you have disabled `SHOULD_USE_BUTTONS`, you can read the [Commandi](./tobrot/dinmamoc.py) file, to know about the commands. + - [COMMANDI_LEECH](./tobrot/dinmamoc.py#L23) can take multiple arguments + * `archive`: if you want a `.tar.gz` file, in your Telegram Chat. + * `leech_rc_0`: if you want to mirror to an rClone supported host, `0` is an example, and should be replaced with the index of your required host, in your uploaded `rclone.conf` file. + * if file is larger than `TG_MAX_FILE_SIZE`, [read this](https://t.me/c/1434259219/113). * if file is a TAR archive, [read this](https://t.me/c/1434259219/104) to know how to uncompress. -## How to get `R_CLONE_CONF_URI` ? - -- Start the RoBot by leaving the var empty. -- Create a rclone.conf by going to the [official website](https://rclone.org/) -- Upload the rclone.conf, in your private chat / channel**. -- Reply the `GET_RCLONE_CONF_URI` Commandi, to the uploaded file. -- RoBot will reply a monospaced text. -- Add it to the `R_CLONE_CONF_URI` ENVironment VARiable. - - ## Issues or Feature Requests * search for known issues, [here](https://t.me/c/1434259219/118) or in the [GitHub Issues](https://github.com/SpEcHiDe/PublicLeech/issues).