Skip to content

jaantaponen/discord-ytdl-bot

Repository files navigation

Discord download bot

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

Usage docker-compose (version >= 1.29.*)

For regular image please run

docker compose up

Restarting (and downloading latest yt-dlp)

BUILD_NUMBER=$(openssl rand -base64 12) docker compose up -d --no-deps --build

Example crontab (change compose path)

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!

Example docker-compose (x86)

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

About

Discord bot for grabbing videos from links (ytdl)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published