A simple Telegram bot that will allow you to upload torrent files / magnet links to a remote Torrent server (qBitTorrent, Transmission, etc.) https://git.orudo.ru/OrudoCA/TorrentUplouderBot
Go to file
trueold89 47301c367e
Log system Update
---
- Logs now show the user's name, not just the id
- Errors in the logs now have a separate label
2023-11-03 18:59:12 +03:00
bot Errors in the logs now have a separate label 2023-11-03 17:43:50 +03:00
Dockerfile Init Dockerfile & docker-compose 2023-10-31 03:49:36 +03:00
Readme.md Log system Update 2023-11-03 18:59:12 +03:00
docker-compose.yml Log system Update 2023-11-03 18:59:12 +03:00

Readme.md

qBitDownload Bot

Telegram bot designed to remotely add downloads to the queue on qBitTorrent server

git.orudo.ru GitHub DockerHub

Bot requires qBitTorrent server


Current features:


  • Authorization by password
  • Adding downloads to the queue via .torrent files / Magnet-links
  • Add/Delete download directories
  • Multiple language support

Image uses "fedarovich/qbittorrent-cli"


Deploy with Docker

1. Build image or clone it from Dockerhub

Clone a repository and go to its directory

git clone https://git.orudo.ru/OrudoCA/qBitDownload-Bot.git && cd qBitDownload-Bot

Build image

docker build -t <IMAGE_NAME> .

2. Deploy via docker-cli or docker-compose

Docker-cli

docker run \
 --name qbitdl_bot \
 --restart=unless-stopped \
 -v /path/to/config:/etc/dbot \
 -v /path/to/media:/path/to/media \
 -e TOKEN="<YOUR_BOT_TOKEN_HERE>" \
 -e PASS="change_me" \
 -e QURL="http://<YOUR_QBIT_SERVER_IP_HERE>:<PORT>" \
 -e QUSER="<YOUR_QBIT_USERNAME>" \
 -e QPASS="<YOUR_QBIT_PASSWORD>" \
 -e LANG="YOUR_LANG" \
 -d -it your_image_here
or

docker-compose

services:
  qbitdl_bot:
    image: <YOUR_IMAGE_HERE>
    tty: true
    container_name: qbitdl_bot
    volumes:
      - /path/to/config:/etc/bot
      - /path/to/data/:/path/to/data
    restart: 'unless-stopped'
    environment:
      TOKEN: "<YOUR_BOT_TOKEN_HERE>"
      PASS: "change_me"
      QURL: "http://<YOUR_QBIT_SERVER_IP_HERE>:<PORT>"
      QUSER: "<YOUR_QBIT_USERNAME>"
      QPASS: "<YOUR_QBIT_PASSWORD>"
      LANG: "<YOUR_LANG>"
docker compose up -d

Run natively:

1. Install deps:

2. Install TeleBot lib:

pip install telebot

3. Set system ENV

# Linux
export TOKEN="YOUR_BOT_TOKEN"
export PASS="change_me"
export QURL="http://<YOUR_QBIT_SERVER_IP_HERE>:<PORT>"
export QUSER="<YOUR_QBIT_USERNAME>"
export QPASS="<YOUR_QBIT_PASSWORD>"
export LANG="<YOUR_LANG>"

# Windows PS
set TOKEN="YOUR_BOT_TOKEN"
set PASS="change_me"
set QURL="http://<YOUR_QBIT_SERVER_IP_HERE>:<PORT>"
set QUSER="<YOUR_QBIT_USERNAME>"
set QPASS="<YOUR_QBIT_PASSWORD>"
set LANG="<YOUR_LANG>"

3.1 On windows change PATH var in db.py

4. Run

python3 bot.py

Available languages:

- "ENG" - English
- "RU" - Russian