1.0.2 • Published 5 years ago
@kaname-png/erela.js-spotify v1.0.2
This a plugin for Erela.JS to allow the use of Spotify URL's, it uses direct URL's being tracks, albums, and playlists and gets the YouTube equivalent.
- https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC
- https://open.spotify.com/album/6N9PS4QXF1D0OWPk0Sxtb4
- https://open.spotify.com/playlist/37i9dQZF1DZ06evO05tE88
Documentation & Guides
It is recommended to read the documentation to start, and the guides to use the plugin.
Installation
NPM :
npm install @kaname-png/erela.js-spotifyYarn :
yarn add @kaname-png/erela.js-spotifyOptions
- limitTracks- Limit length of spotify tracks. 
Example Usage
const { Manager } = require('erela.js');
const Spotify = require('@kaname-png/erela.js-spotify');
const manager = new Manager({
  plugins: [
    // Initiate the plugin.
    new Spotify({ options }),
  ],
});
manager.search('https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC');