spotitube
Version:
A Converter That Will Convert Your Spotify To YT with LavaLink.
113 lines (80 loc) • 3.54 kB
Markdown
[](https://discordapp.com/invite/GuGcuwdYwg)


[](https://www.npmjs.com/package/spotitube)
[](https://www.npmjs.com/package/spotitube)


> Created with ❤️ by the Grace Bot Dev Team _aka Spooder/Gaeta_!
✅ Stable
✅ Straightforward
✅ Works with Multiple Lavalinks at a time
✅ Works with any Spotify Link
✅ Works with Huge Spotify Playlist
✅ Can set a limit on results
✅ Redis Cache System
> NPM (Stable) => `npm install spotitube --save`
> Github (Dev) => `npm install botGrace/SpotiTube
> Npm (Dev) => `npm install spotitube@dev`
_Installing with Redis will make the system a lot faster_
> Stable => https://SpotiTube.git.gracebot.net/
> Dev => `git clone https://github.com/BotGrace/SpotiTube#master && cd ./SpotiTube && yarn install && yarn run docs:dev`
Download the latest binaries from the [CI server (DEV BRANCH) (Recommended)](https://ci.fredboat.com/viewType.html?buildTypeId=Lavalink_Build&branch_Lavalink=refs%2Fheads%2Fdev&tab=buildTypeStatusDiv&guest=1) or [CI server (Stable)](https://ci.fredboat.com/viewLog.html?buildId=lastSuccessful&buildTypeId=Lavalink_Build&tab=artifacts&guest=1)
Put an [application.yml](https://github.com/freyacodes/Lavalink/blob/master/LavalinkServer/application.yml.example) file in your working directory.
Run with `java -jar Lavalink.jar`
Docker images are available on the [Docker](https://hub.docker.com/r/fredboat/lavalink/) hub.
## Getting Redis (Optional)
Download the latest version of Redis Stable [Here](https://redis.io/download) and Read the **[Redis Quick Start (Recommended)](https://redis.io/topics/quickstart)** to get started!
## Example Usage
#### Create SpotiTube instance w/o Redis
```js
const STYT = new SpotiTube({
spotify: {
clientID: 'CLIENTID',
secretKey: 'SECRETKEY'
},
lavalink: [{
url: 'http://localhost:2869',
password: 'password',
name: 'bobross'
}]
})
```
```js
const STYT = new SpotiTube({
spotify: {
clientID: 'CLIENTID',
secretKey: 'SECRETKEY'
},
lavalink: [{
url: 'http://localhost:2869',
password: 'password',
name: 'bobross'
}],
redis: {
host: "127.0.0.1",
post: 6379,
db: 0 // This is optional
}
})
```
```js
(async () => {
const result = await STYT.convert('https://open.spotify.com/track/5nTtCOCds6I0PHMNtqelas', 15);
console.log(result);
})();
```
- [X] Redis Cache System
- [X] Support Mutiple Lavalinks
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!