|
||
---|---|---|
README.md | ||
screenshot.png | ||
start.py |
README.md
Set Up Guide
- Create a python virtual environment
python3 -m venv /absolute/path/to/venv
- Install depends in venv
/absolute/path/to/venv/bin/pip install spotdl
/absolute/path/to/venv/bin/pip3 install pyTelegramBotAPI requests beautifulsoup4 spotdl
-
Edit start.py with correct telegram API token and change directories variables.
-
Start the script
/absolute/path/to/venv/bin/python start.py
Unit file
[Unit]
Description=tg_spotdl
After=network-online.target
[Service]
User=nobody
ExecStart=/absolute/path/to/venv/bin/python /absolute/path/to/start.py
Restart=always
RestartSec=5s
RuntimeMaxSec=12h
[Install]
WantedBy=multi-user.target
Start Script
#!/bin/bash
/absolute/path/to/venv/bin/python /absolute/path/to/start.py
exit
Usage
- Private message your bot.
- Type
/start
in the PM - The bot will ask for the artist url. It will look something like this
https://open.spotify.com/artist/lajs7ahska91187skas
- Bot auto gets the artist name.
- Wait, the bot will let you know when it's done and ready for another artist.