Git Product home page Git Product logo

rizkiv1 / qbittorrentbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ch3p4ll3/qbittorrentbot

0.0 0.0 0.0 85 KB

This bot can control qbittorrent easily from Telegram! You can add magnet or torrent files, have a list of active downloads, delete, pause and restart downloads.

Home Page: https://hub.docker.com/r/ch3p4ll3/qbittorrent-bot

License: MIT License

Python 99.36% Dockerfile 0.64%

qbittorrentbot's Introduction

Codacy Badge

QBittorrentBot

With this bot telegram you can manage your qbittorrent with a few simple clicks. Thanks to QBittorrentBot you can have a list of all the files in download / upload, add torrents and magnets.
You can add more magnets by simply placing one link per line, e.g.

magnet:?xt=...  
magnet:?xt=...  

You can also pause, resume, delete and add/remove and modify categories.

Configuration

Retrieve Telegram API ID and API HASH

With the change of library to pyrogram you will need the API_ID and API_HASH. Check here to find out how to recover them.

JSON Configuration

Edit the config.json.template file and rename it to config.json. The config file is stored in the mounted /app/config/ volume

{
    "qbittorrent": {
        "ip": "192.168.178.102",
        "port": 8080,
        "user": "admin",
        "password": "admin"
    },
    "telegram": {
        "bot_token": "1111111:AAAAAAAA-BBBBBBBBB",
        "api_id": 1111,
        "api_hash": "aaaaaaaa"
    },

    "users": [
        {
            "user_id": 123456,
            "notify": false
        },
        {
            "user_id": 12345678,
            "notify": true
        }
    ]
}

Note: If notify is true then the user will receive a notification whenever a torrent has finished downloading

Running

Pull and run the image with: docker run -d -v /home/user/docker/QBittorrentBot:/app/config:rw --name qbittorrent-bot ch3p4ll3/qbittorrent-bot:latest

Build docker

  • Clone this repo git clone https://github.com/ch3p4ll3/QBittorrentBot.git
  • Move in the project directory
  • Create a config.json file
  • Run docker build -t qbittorrent-bot:latest . && docker run -d -v /home/user/docker/QBittorrentBot:/app/config:rw --name qbittorrent-bot qbittorrent-bot:latest

Running without docker

  • Clone this repo git clone https://github.com/ch3p4ll3/QBittorrentBot.git
  • Move in the project directory
  • Install dependencies with pip3 install -r requirements.txt
  • Create a config.json file
  • Edit in the file /src/config.py the location of the file 'config.json'
  • Start the bot with python3 main.py

How to enable the qBittorrent Web UI

For the bot to work, it requires qbittorrent to have the web interface active. You can activate it by going on the menu bar, go to Tools > Options qBittorrent WEB UI

  • In the new window, choose Web UI option
  • Check the Enable the Web User Interface (Remote control) option
  • Choose a port (by default 8080)
  • Set username and password (by default username: admin / password: adminadmin)

Click on Ok to save settings.

qbittorrentbot's People

Contributors

bushig avatar ch3p4ll3 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.