1.1.8 • Published 1 month ago

damonjs-spotify v1.1.8

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

DamonJs-Spotify

A spotify plugin for DamonJs module

Accepted query

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

Installation

npm i damonjs-spotify

Links

How to

import { DamonJs } from 'damonjs';
import { DamonJsPlugin as Spotify } from 'damonjs-spotify';
import { Connectors, Shoukaku } from 'shoukaku';

const Nodes = [
  {
    name: 'owo',
    url: 'localhost:2333',
    auth: 'youshallnotpass',
    secure: false,
  },
];

const damonJs = new DamonJs(
  {
    defaultSearchEngine: 'youtube',
    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 Shoukaku(new Connectors.DiscordJS(client), Nodes, {
    moveOnDisconnect: false,
    resume: false,
    resumeTimeout: 30,
    reconnectTries: 2,
    restTimeout: 10000,
  }),
);

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

1 month ago

1.1.7

10 months ago

1.1.6

11 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.3

12 months ago

1.1.1

12 months ago

1.0.9

12 months ago

1.1.2

12 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago