How to use ytdl-core-discord - 1 common examples

To help you get started, we’ve selected a few ytdl-core-discord examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Crow08 / discord-uberbot / src / YouTubeService.js View on Github external
return new Promise((resolve, reject) => {
      ytdlDiscord.getBasicInfo(searchString, {}, (err, info) => {
        if (err) {
          return reject(err);
        }
        const song = new Song();
        song.title = info.title;
        song.url = info.video_url;
        song.artist = info.author.name;
        song.src = Song.srcType.YT;
        return resolve([song]);
      });
    });
  }

ytdl-core-discord

A ytdl-core wrapper focused on efficiency for use in Discord music bots

Apache-2.0
Latest version published 4 years ago

Package Health Score

48 / 100
Full package analysis

Popular ytdl-core-discord functions