Skip to content

BotGrace/SpotiTube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpotiTube

A Converter That Will Convert Your Spotify To YT with LavaLink.

Discord Github Stars GitHub issues npm npm downloads Snyk Vulnerabilities for npm package NPM

Created with ❤️ by the Grace Bot Dev Team aka Spooder/Gaeta!

Features

✅ 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

Installation

NPM (Stable) => npm install spotitube --save

Github (Dev) => npm install botGrace/SpotiTube#master

Npm (Dev) => npm install spotitube@dev

Installing with Redis will make the system a lot faster

Documentation Site

Stable => https://SpotiTube.git.gracebot.net/

Dev => git clone https://github.com/BotGrace/SpotiTube#master && cd ./SpotiTube && yarn install && yarn run docs:dev

Getting Lavalink

Download the latest binaries from the CI server (DEV BRANCH) (Recommended) or CI server (Stable)

Put an application.yml file in your working directory.

Run with java -jar Lavalink.jar

Docker images are available on the Docker hub.

Getting Redis (Optional)

Download the latest version of Redis Stable Here and Read the Redis Quick Start (Recommended) to get started!

Example Usage

Create SpotiTube instance w/o Redis

const STYT = new SpotiTube({
  spotify: {
    clientID: 'CLIENTID',
    secretKey: 'SECRETKEY'
  },
  lavalink: [{
    url: 'http://localhost:2869',
    password: 'password',
    name: 'bobross'
  }]
})

Create SpotiTube instance w/ Redis

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
  }
})

Convert Spotify To YT

(async () => {
  const result = await STYT.convert('https://open.spotify.com/track/5nTtCOCds6I0PHMNtqelas', 15);
  console.log(result);
})();

To Do List

  • Redis Cache System
  • Support Mutiple Lavalinks

🤝 Support

Contributions, issues, and feature requests are welcome!

Give a ⭐️ if you like this project!