kazagumo-spotify
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

kazagumo-spotify

A spotify plugin for kazagumo module

Accepted query

  • [x] Track link; https://open.spotify.com/track/7nw4ElerVAP5235FN5D2OI
  • [x] Playlist link; https://open.spotify.com/playlist/2gzszlY4WeJOTOUU6x3sgA
  • [x] Album link; https://open.spotify.com/album/18UoCkfQKlMVnAcZXbiBz8
  • [x] Artist link; https://open.spotify.com/artist/64tJ2EAv1R6UaZqc4iOCyj?si=mxc5IMM9RQeEPmY0KBIfjg
  • [x] Short link; https://spotify.link/zu1pVRAg6Db
  • [x] ISRC: TCJPN2165580
  • [x] String; mirror heart

⚠️ This latest plugin (v2) is for kazagumo v3. If you use kazagumo v2, do npm i kazagumo-spotify@1.2.1

Installation

npm i kazagumo-spotify

Links

How to

const { Kazagumo } = require('kazagumo');
const Spotify = require('kazagumo-spotify');

const kazagumo = new Kazagumo(
  {
    plugins: [
      new Spotify({
        clientId: '',
        clientSecret: '',
        playlistPageLimit: 1, // optional ( 100 tracks per page )
        albumPageLimit: 1, // optional ( 50 tracks per page )
        searchLimit: 10, // optional ( track search limit. Max 50 )
        searchMarket: 'US', // optional || default: US ( Enter the country you live in. [ Can only be of 2 letters. For eg: US, IN, EN ] )//
      }),
    ],
  },
  new Connectors.DiscordJS(client),
  Nodes,
);

kazagumo.search(`https://open.spotify.com/track/7nw4ElerVAP5235FN5D2OI`); // track, album, playlist, artist
kazagumo.search('mirror heart', { engine: 'spotify' }); // search track using spotify

Package Sidebar

Install

npm i kazagumo-spotify

Weekly Downloads

368

Version

2.0.1

License

ISC

Unpacked Size

25.4 kB

Total Files

10

Last publish

Collaborators

  • takiyo