qBittorrent Discord Webhook

While adventuring in creating my homelab I found it useful to not have to check the web interface hourly.

With this I had an idea, why not have the server tell me with Discord.

Using python it was very simple you can see the code below

It's easy to use, add your Webhook URL from discord and save the file as something.py

qBitTorrent Discord Announcer
qBitTorrent Discord Announcer. GitHub Gist: instantly share code, notes, and snippets.

Afterwards all you have to do is tell qBittorrent run the script after a torrent is complete, like so

Mastodon