Yet Another Discord Library
libm libz libdl libuv pthread openssl libopus libsodium libwebsockets libcap(linux only)
- create a
build
directory at the project root directory. - enter
build
directory. cmake ..
andmake
to build YADL library. (cmake argument -YADL_BUILD_DEPS
is available.)
- Type
!!connect [voice_channel_id]
any guild text channel. - A FIFO pipe that named guild id would have been created in a directory with
test_yadl
. - Send the
s16le
audio data to the pipe, the bot will play the audio.
youtube-dl --quiet -f bestaudio "[Youtube Video URL]" -o - | ffmpeg -i pipe: -f s16le -ac 2 -ar 48000 -acodec pcm_s16le - > ./928872876965249065.pipe
- Type
!!disconnect
to disconnect from the voice channel.