Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sawa-ko/erela.js-spotify
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://github.com/sawa-ko/erela.js-spotify
discord-js erelajs spotify-api
Last synced: 15 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/sawa-ko/erela.js-spotify
- Owner: sawa-ko
- License: apache-2.0
- Created: 2021-04-16T02:36:33.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-17T21:04:07.000Z (over 2 years ago)
- Last Synced: 2024-12-16T12:27:03.034Z (17 days ago)
- Topics: discord-js, erelajs, spotify-api
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@kaname-png/erela.js-spotify
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.
- [Documentation](http://projects.solaris.codes/erelajs/docs/gettingstarted.html 'Erela.js Documentation')
- [Guides](http://projects.solaris.codes/erelajs/guides/introduction.html 'Erela.js Guides')
## Installation
**NPM** :
```sh
npm install @kaname-png/erela.js-spotify
```**Yarn** :
```sh
yarn add @kaname-png/erela.js-spotify
```## Options
- ### limitTracks
> Limit length of spotify tracks.## Example Usage
```javascript
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');
```