npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tg-torrent-bot

v3.1.0

Published

A telegram bot implementation for torrents search and download.

Downloads

28

Readme

Telegram Torrent Bot

GitHub NpmJs Ansible Galaxy DockerHub

A telegram bot implementation for torrents search and download.

Searches for torrents on supported trackers, gets magnet-links, provides/downloads .torrent files.

Supported torrent-trackers:

  • rutracker.org

DISCLAIMER: Please be aware that some materials you can get access to by means of this software might be subjects to copyright laws. Please use this software only for lawful purposes. The author of the software isn't responsible for any violations.

Installation

npm install -g tg-torrent-bot

Configuration

Configuration is done through environment variables.

| Variable | Description | |--------------------|--------------------------------------------------------------------------------------------------------------------------------------| | TELEGRAM_TOKEN | Telegram bot token (from @BotFather bot) | | WEBHOOK_URL | Optional if polling interaction is okay for you. Example: https://.herokuapp.com:443 | | WEBHOOK_PORT | Optional if polling interaction is okay for you. Port on which the bot will be listening for requests from Telegram. | | RUTRACKER_USERNAME | Username for rutracker.org | | RUTRACKER_PASSWORD | Password for rutracker.org | | TORRENTS_DIR | Optional. Directory where to put downloaded .torrent files. If not set, the torrent file will be sent to chat in response. | | ALLOWED_USERS | Optional. Comma separated list of telegram user ids, who are allowed to use the bot. If not set, everyone is allowed to use the bot. | | RUTRACKER_HOST | Url of rutracker.org (for ability to use a mirror) | | PROXY_TELEGRAM | true/false. Should connection to Telegram servers be proxied. | | PROXY_RUTRACKER | true/false. Should interaction with rutracker.org be proxied. | | PROXY_HOST | Optional if nothing should be proxied. Proxy host. | | PROXY_PORT | Optional if nothing should be proxied. Proxy port. | | PROXY_PROTOCOL | Possible values: http, https, socks5. Default value: http | | PROXY_USERNAME | Optional if nothing should be proxied, or no proxy auth is required. Proxy username. | | PROXY_PASSWORD | Optional if nothing should be proxied, or no proxy auth is required. Proxy password. | | DB_FILE | Required if TORRENTS_DIR is set. JSON-database to track which user waits for which torrent to download. | | COMPLETES_WATCHDIR | Required if TORRENTS_DIR is set. Directory to receive "download complete" event-files. |

How to run

Option 1: Set up environment variables and run

export TELEGRAM_TOKEN="<telegram token>"; \
export RUTRACKER_USERNAME="<rutracker username>"; \
export RUTRACKER_PASSWORD="<rutracker password>"; \
export TORRENTS_DIR="/home/username/Torrents"; \
export RUTRACKER_HOST="https://rutracker.org"; \
export PROXY_TELEGRAM="false"; \
export PROXY_RUTRACKER="false"; \
export DB_FILE="/home/username/bot/db.json"; \
export COMPLETES_WATCHDIR="/home/username/bot/completes-watchdir"; \
  tg-torrent-bot-node

Option 2: Set up integration with Transmission using Ansible

Ansible Role: https://galaxy.ansible.com/fertkir/tg_torrent_bot_transmission

Github: https://github.com/fertkir/tg-torrent-bot-transmission