Introduction |
Hi guys! Today we shall be learning how to create and deploy a Torrent all-in-one bot for free. We have learned how to create a Python telegram bot, a Typescript bot and also how to get free VPS to host these bots.
Pre-requisites
- Heroku Account which is free
- A Github Repo by patheticGeek
- Google account.
- A Team Drive (optional).
How to Create and Deploy a Torrent All-In-One Bot for FREE
Follow the video guide below to learn how to create and Deploy a Torrent All-In-One Bot
Complete List of Curated Resources and Commands Used During This Setup
Open the Github repo link. Click on the Deploy to Heroku button. On the Heroku page, click on Deploy. After deploying successfully, open the Heroku app and go to Settings. Scroll down and click on Reveal Config Vars. You have to modify the config entries for your use case by providing key: value pairs for each config variable.
To get torrent download working. This is important to keep your bot alive otherwise the server will stop after 30 minutes of inactivity.
Key is SITE
| Value is your Heroku app website address
To start a torrent bot
Key is TELEGRAM_TOKEN
| Value is the Bot Token
gotten using Botfather
To get gdrive upload
Go to Quickstart NodeJs and Enable Drive
. Create an OAUTH
for Desktop
and copy the Client ID
and Client Secret
.
Visit your Heroku app website and add drivehelp
at the end of the address. This will open a page where you can paste both your Client ID
and Client Secret
. Follow the screen prompts to get your AUTH CODE
and TOKEN
. Use the above values to create your Heroku Config variables with Key: Value pair as explained below.
Key is CLIENT_ID
| Value is String of numbers copied as Client ID above
Key is Client Secret
| Value is String of numbers copied as Client Secret from above
Key is AUTH_CODE
| Value is Auth Code
gotten from the above step.
key is TOKEN
| Value isToken
gotten from the above step.
Key is GDRIVE_PARENT_FOLDER
| Value is Download destination ID
Botfather Bot Command Settings
After having completed setting up the bot, you may wish to set some custom commands for ease of use. Go to Botfather, select to /setcommands
and use the following commands for your bot:
search -Site query
details -Site query
download -Magnet link
status -Of download task
remove -A download task

Conclusion
That’s it guys. Now you can easily Deploy a Torrent All-In-One Bot following this detailed guide. Don’t forget to subscribe to my YouTube Channel and like my posts. Use the subscription box below to get notified as soon as we publish new posts. Drop your questions using the comment box below and I shall respond ASAP. Read my other posts above to get all you need.
Follow/Contact EduTechTainMent:
Sorry for the late reply. I have been offline for a long time due to some personal issues.
Hey , What IP does it use when downloading the Torrents? Is it my IP or Heroku’s IP?
Does the same go for the Download to google Collab methods? Does it use google IP or my IP to download torrents?
I don’t want my ISP to know so I am asking. thanks
It will use your IP. Colab will also use your IP. The only difference is that colab doesn’t use your computer resources like RAM, CPU, but you access the sites through your own IP.
If you want to mask your IP from your ISP, you should use a combination of multi level protection: use a good VPN, also try using a bot hosted on a dedicated VPS, use tor, use proxy (you could route your torrent leech Web app through a cloudflare proxy- it’s free to setup).
can we set a teamdrive folder as the GDRIVE_PARENT_FOLDER
Yes you can.