Run this bot on machine where your qbittorrent has been installed.
Activate Web Interface or use headless implementation qbittorrent-nox
.
Warning: activate Bypass authentication for clients on localhost
sudo apt install qbittorrent-nox
Look:
Running qBittorrent without X server (WebUI only)
Just write command /add url_or_magnet_link_here
Example: (Download debian-11.2.0-amd64-netinst.iso image)
/add https://cdimage.debian.org/debian-cd/current/amd64/bt-cd/debian-11.2.0-amd64-netinst.iso.torrent
Just rename .env.sample
to .env
and add proper vars in there
go tool dist list
to list possible platforms
go env GOOS GOARCH
to see env vars
Linux:
GOOS=linux GOARCH=amd64 go build
Windows:
GOOS=windows GOARCH=amd64 go build