Getting Started

Let us see how do we setup FerraLink

const { FerraLink } = require("ferra-link");

2. Defining your Nodes

circle-info
  1. This step depends if you have any hosting to get your lavalink server.

  2. You can get your password from application.yml.

const nodes = [{
name: "Node",
url: "localhost:2333",
auth: "youshallpass",
secure: false
}];
circle-info

Creating in a way like the code example you can import the bot and nodes.

client.FerraLink = new FerraLink(client, nodes, {
spotify: {
 playlistLimit: "Playlist search limit here", //default limit is 5 = 500.
 albumLimit: "Album search limit here", //default limit is 5 = 500.
 artistLimit: "Artist search limit here", //default limit is 5 = 500.
 searchMarket: "searchMarket(ISO code) here", //default searchMarket is US.
 clientID: "Your spotify clientId here",
 clientSecret: "Your spotify clientSecret here"
}
});

4. A small example to create play command.

Last updated