@nicholai/discord-player-downloader
v2.1.1
Published
Stream extractor for discord-player via youtube-dl
Downloads
2
Maintainers
Readme
Downloader
Extractor for discord-player using youtube-dl.
Installing
npm i @discord-player/downloader
Example
General
const downloader = require("@discord-player/downloader").Downloader;
const fs = require("fs");
const url = "https://soundcloud.com/dogesounds/alan-walker-feat-k-391-ignite";
const stream = downloader.download(url);
stream.pipe(fs.createWriteStream("./song.mp3"));
With Discord Player
const downloader = require("@discord-player/downloader").Downloader;
player.use("YOUTUBE_DL", downloader); // enables youtube-dl extractor for discord-player