Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Aug 8, 2020
1 parent eebb4df commit d6ee2c1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
19 changes: 18 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit d6ee2c1

Please sign in to comment.