This Discord bot downloads your links prefixed with !
and sends them as a reply to the channel.
This bot can:
- Try to transcode the videos so we don't exceed the free 8mb limit.
- Delete the original message if the video was able to be downloaded
- Install yt-dlp from source every rebuild
- Hardware transcoding support
For regular image please run
docker compose up
BUILD_NUMBER=$(openssl rand -base64 12) docker compose up -d --no-deps --build
0 0 20 * * BUILD_NUMBER=$(/usr/bin/openssl rand -base64 12) /usr/bin/docker compose -f /home/ubuntu/discord-ytdl-bot/docker-compose.yml up -d --no-deps --build && /usr/bin/docker image prune -f && echo "$(date +%T)" >> /tmp/log.txt
See docker-compose.yml for rpi and nvidia hw acceleration!
version: "3.9"
services:
firstbot:
build: https://github.com/jaantaponen/discord-ytdl-bot.git
restart: unless-stopped
environment:
- TOKEN=ASDASD
secondbot:
build: https://github.com/jaantaponen/discord-ytdl-bot.git
restart: unless-stopped
environment:
- TOKEN=ASDASD