A simple music-bot to stream from YouTube written in Lua with the Discordia and the yt-dlp library
First, follow the instructions here to install Discordia and here to aquire the audio libraries Discordia-Voice needs, here you can download yt-dlp for your platform, run lit install creationix/coro-split
in your bash/commandline and finally download main.lua in the folder where you installed everything else. To start the bot, just execute luvit main.lua TOKEN
, where TOKEN is your bot's token that you get after creating a discord application online.
audio.play URL
for playing single videosaudio.pause
to pause the current streamaudio.resume
to resume the paused streamaudio.skip
to skip the playing video and go on with the next item on the YouTube playlist
A queue for audio.play