New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

erelasfy

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erelasfy

A plugin for erela.js to play music from spotify

  • 1.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-10.34%
Maintainers
1
Weekly downloads
 
Created
Source

erelasfy 🎧

A simple plugin for erela.js package to play Spotify music and retrieve Spotify metadata to the track(s).

Erelasfy can play Spotify tracks, albums, playlists and popular artist tracks.

Installation

# for erela.js original
npm i erelasfy@original

# for @drgatoxd/erelajs fork
npm i erelasfy@latest

Usage (typescript)

import { Manager } from 'erela.js';
// import { Manager } from '@drgatoxd/erelajs';
import { Erelasfy } from 'erelasfy';

const manager = new Manager({
	nodes: [
		{
			host: 'lava.drgato.me', // just an example
			port: 2333,
			password: 'youshallnotpass'
		}
	],
	plugins: [
		// you need an spotify client id and client secret
		// you can get it here: https://developer.spotify.com/dashboard/
		new Erelasfy({
			clientId: 'your spotify client id',
			clientSecret: 'your spotify client secret'
		})
	]
});

// now you can play from spotify with an spotify url
manager.search('https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC');

Keywords

FAQs

Package last updated on 21 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc