Tipu is a telegram bot that was created to help download, replicate and manage a music collection.
It can help you if you like to pretend it's 2005 and hoard MP3 files.
- Download the audio from the link to a folder in your server,
- Send you the MP3 file,
- Upload the same file to your pCloud folder and playlist,
- Save details about the song to your local sqlite database
- Add the song to your Spotify playlist,
- Find the same song on Youtube (or the best approximate of it), and do the same things done for YouTube links (MP3 file, pCloud upload and save metadata to DB)
- Save the file in your server
- Upload the file to your pCloud folder and playlist,
- Save details about the song to your local sqlite database
You will need
- A Telegram Bot (make one through @BotFather)
- API access to your spotify account
- A pCloud account
Create a config.py
file and copy the contents of sample-config.py
. Update the access credentials.
Also update your bot username, your telegram userId, path to the log file and the directory where the music should be saved to.
Create a yt-dlp.conf
file and copy the contents of sample-yt-dlp.conf
. Update the save destination.
Download ffmpeg and place it in Binaries
folder.
Install dependencies and run bot.py
On Windows, consider using NSSM to run the script as a service
Happy hoarding :)