musicord
A simple music-bot to stream from YouTube written in Lua with the Discordia and the youtube-dl library
Installation
First, follow the instructions here to install Discordia and here to aquire the audio libraries Discordia-Voice needs, here you can download youtube-dl 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.
Available commands:
audio.play URL
for playing single videosaudio.playlist URL
for playing YouTube-playlistsaudio.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
To-Do:
A queue for audio.play