A simple bot to help with posting music to my channel.
- Python 3.10
- aiogram 3.0.0b5
- httpx
Copy .env.example
to .env
and edit the latter. Then follow the instructions below depending
on your setup.
Note: This requires Docker Engine and Docker Compose to be installed.
docker compose build
- (Optional) Create and activate venv
python3.10 -m venv .venv && source .venv/bin/activate
- Install requirements
pip install -r requirements.txt
docker compose up -d
- Source venv if you created one
source .venv/bin/activate
- Export environment variables (it's safe, trust me)
eval "$(sed '/^#/d;s/^/export /' <.env)"
- Run the bot
python -m randmuzposter
Send a music file with any supported link attached to it in caption (e.g. with @nowplaybot or @LyBot). The bot will parse it and make a request to song.link API to get links to more streaming services. Then you can edit some links if they're not accurate, e.g. to use audio-only for YT Music, or even replace an audio, and post it to your channel.