Self-hosted Discord bot that supports playback of YouTube videos in voice channels.
- Install go
- Install ffmpeg
- sudo apt install ffmpeg
- Install yt-dlp
- Download yt-dlp executable version
- Move to /usr/local/bin
- Make executable (chmod +x)
- Clone repo
- Copy .env-sample
- Set bot properties
- Set youtube api key
- Set path to store store downloaded songs and log files
- "go run cmd/discordyt/* ENV_FILE"
- Or "go install cmd/discordyt/*"
- Executable will be installed in $GOPATH, which is $HOME/go by default, so recommend adding ~/go/bin to PATH
- Optional
- Setup a cron job to keep the app alive
- Setup a cron job to delete files in song folder
(I still need to elaborate on some of the steps here)