Skip to content

๐Ÿ‡ Dockerized Discord TypeScript bot to search, queue, and manage movie torrents with slash commands and WebUI.

License

Notifications You must be signed in to change notification settings

sebilune/dc-torrent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

65 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฅ Discord Movie Torrent Bot

License Code Size (bytes) Repo Size Last Commit

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.

Index

Features

  • 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

Available Commands

Command Description
/movie Search and download any movie
/status Check the current status of active downloads
/remove Remove a movie from the download queue

Quick Start

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-torrent

2. Run the setup script:

bash setup.sh

This 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-torrent

Or stop the bot with:

docker stop dc-torrent

You only need to run the setup script once. To start the bot again later, just run:

docker start dc-torrent

Manual Installation

Ensure you have Git and Docker installed on your system.

1. Clone the repository:

git clone https://github.com/sebilune/dc-torrent.git
cd dc-torrent

2. 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 token
    • CLIENT_ID: Your botโ€™s client ID
    • ROLE_ID Only allow users with this server role to run commands (optional, leave empty to allow all users)
  • In the volumes section of the compose file, bind your movies directory to the container.

4. Start the container:

docker compose -f docker-compose.yml up

The 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 -d

To view the logs of the detatched container:

docker compose -f docker-compose.yml logs -f

To stop and remove the container:

docker compose -f docker-compose.yml down

Disclaimer

This 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.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Releases

No releases published

Packages

No packages published