Dockerized Discord bot that lets you search, download, and manage movie torrents to your media directory directly from Discord slash commands. It was founded for the purpose to allow me and my friends to quickly add our entertainment needs to my plex server remotely.
- Slash command support
- Search and download movies from YTS
- Queue movie torrents into qBittorrent
- Check current queue status
- Remove movie torrents from queue
- WebUI for further management
- Optional role-based access control
| Command | Description |
|---|---|
/movie |
Search and download any movie |
/status |
Check the current status of active downloads |
/remove |
Remove a movie from the download queue |
If you're on Linux, you can use the provided setup.sh script to get started quickly. Ensure you have Docker installed.
1. Clone the repository:
git clone https://github.com/sebilune/dc-torrent.git
cd dc-torrent2. Run the setup script:
bash setup.shThis script will prompt you for your Discord bot credentials, config, and movies directory, then it will automatically build the Docker image, and start the container in detached mode.
The qBittorrent Web UI will be available at http://localhost:8080 by default with the user admin and password adminadmin.
You can view logs with:
docker logs -f dc-torrentOr stop the bot with:
docker stop dc-torrentYou only need to run the setup script once. To start the bot again later, just run:
docker start dc-torrentEnsure you have Git and Docker installed on your system.
1. Clone the repository:
git clone https://github.com/sebilune/dc-torrent.git
cd dc-torrent2. Build the Docker image:
docker build --network=host -t dc-torrent .3. Edit your configuration:
- Edit docker-compose.yml to set your environment variables:
BOT_TOKEN: Your Discord bot tokenCLIENT_ID: Your botโs client IDROLE_IDOnly allow users with this server role to run commands (optional, leave empty to allow all users)
- In the
volumessection of the compose file, bind your movies directory to the container.
4. Start the container:
docker compose -f docker-compose.yml upThe bot and qBittorrent-nox will start automatically inside the container. The qBittorrent Web UI will be available at http://localhost:8080 by default with the user admin and password adminadmin.
If you want to run the container in the background (detatch), add -d to the command:
docker compose -f docker-compose.yml up -dTo view the logs of the detatched container:
docker compose -f docker-compose.yml logs -fTo stop and remove the container:
docker compose -f docker-compose.yml downThis project is provided for educational and personal use only. The author does not endorse piracy or the downloading of copyrighted content. Users are responsible for ensuring their actions comply with local laws and terms of service of third-party providers.
This project is licensed under the MIT License. See the LICENSE file for more information.