---
title: Leech
emoji: đ˘
colorFrom: yellow
colorTo: purple
sdk: docker
pinned: false
---
This repository is a feature-enhanced version of the [mirror-leech-telegram-bot](https://github.com/anasty17/mirror-leech-telegram-bot). It integrates various improvements from multiple sources, expanding functionality while maintaining efficiency. Unlike the base repository, this version is fully deployable on Heroku.
[](#) [](#) [](#)|[](#) [](#) [](#) [](#)
:---:|:---:|
[](#) [](#) [](#) [](#)|[](#) [](#) [](#)
[](https://t.me/WZML_X) |[](https://t.me/WZML_Support) |
---
Below is a refined version that preserves all the important details while enhancing readability and design :
---
# Deployment Guide (VPS)
View All Steps Click Here
---
## 1. Prerequisites
- **Tutorial Video from A to Z (Latest Video)**
- Special thanks to [Wiszky](https://github.com/vishnoe115)
[](https://youtu.be/xzLOLyKYl54)
---
## 2. Installing Requirements
Clone this repository:
```bash
git clone https://github.com/SilentDemonSD/WZML-X mirrorbot/ && cd mirrorbot
```
---
## 3. Build and Run the Docker Image
*Make sure you mount the app folder and install Docker following the official documentation.*
There are two methods to build and run the Docker image:
### 3.1 Using Official Docker Commands
- **Start Docker daemon** (skip if already running):
```bash
sudo dockerd
```
- **Build the Docker image:**
```bash
sudo docker build . -t wzmlx
```
- **Run the image:**
```bash
sudo docker run -p 80:80 -p 8080:8080 wzmlx
```
- **To stop the running image:**
First, list running containers:
```bash
sudo docker ps
```
Then, stop the container using its ID:
```bash
sudo docker stop
```
---
### 3.2 Using docker-compose (Recommended)
**Note:** If you want to use ports other than 80 and 8080 for torrent file selection and rclone serve respectively, update them in [docker-compose.yml](https://github.com/weebzone/WZML-X/blob/master/docker-compose.yml).
- **Install docker-compose:**
```bash
sudo apt install docker-compose
```
- **Build and run the Docker image (or view the current running image):**
```bash
sudo docker-compose up
```
- **After editing files (e.g., using nano to edit start.sh), rebuild:**
```bash
sudo docker-compose up --build
```
- **To stop the running image:**
```bash
sudo docker-compose stop
```
- **To restart the image:**
```bash
sudo docker-compose start
```
- **To view the latest logs from the running container (after mounting the folder):**
```bash
sudo docker-compose up
```
- **Tutorial Video for docker-compose and checking ports:**
[](https://youtu.be/c8_TU1sPK08)
------
#### Docker Notes
**IMPORTANT NOTES**:
1. Set `BASE_URL_PORT` and `RCLONE_SERVE_PORT` variables to any port you want to use. Default is `80` and `8080` respectively.
2. You should stop the running image before deleting the container and you should delete the container before the image.
3. To delete the container (this will not affect on the image):
```
sudo docker container prune
```
4. To delete te images:
```
sudo docker image prune -a
```
5. Check the number of processing units of your machine with `nproc` cmd and times it by 4, then edit `AsyncIOThreadsCount` in qBittorrent.conf.
------
# Deployment Guide (Heroku)
View All Steps Click Here
---
**Check the Docs Here :** [Click Here](https://github.com/SilentDemonSD/WZ-Deploy/tree/main?tab=readme-ov-file#2%EF%B8%8FâŁ-method-2-github-workflow-guide)
---
## đ
**Bot Authors**
Click Here For Description
|
|
|
|
|
|:---:|:---:|:---:|:---:|
|[`SilentDemonSD`](https://github.com/SilentDemonSD)|[`RjRiajul`](https://github.com/rjriajul)|[`CodeWithWeeb`](https://github.com/weebzone)|[`Maverick`](https://github.com/MajnuRangeela)|
|Author and DDL, UI Design, More Customs..|Co-Author & Maintainer|Author and Wraps Up Features|Co-Author & Bug Tester|