Git Product home page Git Product logo

Comments (11)

LewdHuTao avatar LewdHuTao commented on August 23, 2024

just change this line

nodes: [
        {
          identifier: this.config.nodes.id,
          host: this.config.nodes.host,
          port: this.config.nodes.port,
          password: this.config.nodes.password,
          secure: this.config.nodes.secure,
        },
      ],

to nodes: this.config.nodes, and after that you can add multiples lavalink

from lavamusic.

LewdHuTao avatar LewdHuTao commented on August 23, 2024

this is how to set multiples lavalink on config.js file

nodes: [
    {
      host: "host",
      id: "id",
      port: port,
      password: "pass",
      secure: false
    },
    {
      host: "host",
      id: "id",
      port: port,
      password: "pass",
      secure: false
    },
    {
      host: "host",
      id: "id",
      port: port,
      password: "pass",
      secure: false     
    },
  ],

from lavamusic.

appujet avatar appujet commented on August 23, 2024

just change this line

nodes: [
        {
          identifier: this.config.nodes.id,
          host: this.config.nodes.host,
          port: this.config.nodes.port,
          password: this.config.nodes.password,
          secure: this.config.nodes.secure,
        },
      ],

to nodes: this.config.nodes, and after that you can add multiples lavalink

Not work like this

from lavamusic.

LewdHuTao avatar LewdHuTao commented on August 23, 2024

just change this line

nodes: [
        {
          identifier: this.config.nodes.id,
          host: this.config.nodes.host,
          port: this.config.nodes.port,
          password: this.config.nodes.password,
          secure: this.config.nodes.secure,
        },
      ],

to nodes: this.config.nodes, and after that you can add multiples lavalink

Not work like this

it works with me

from lavamusic.

appujet avatar appujet commented on August 23, 2024

change in MusicClient.js

nodes: [
        {
          identifier: this.config.nodes.id[0],
          host: this.config.nodes.host[0],
          port: this.config.nodes.port[0],
          password: this.config.nodes.password[0],
          secure: this.config.nodes.secure[0],
        },
        {
          identifier: this.config.nodes.id[1],
          host: this.config.nodes.host[1],
          port: this.config.nodes.port[1],
          password: this.config.nodes.password[1],
          secure: this.config.nodes.secure[1],
        },
      ],

from lavamusic.

appujet avatar appujet commented on August 23, 2024

just change this line

nodes: [
        {
          identifier: this.config.nodes.id,
          host: this.config.nodes.host,
          port: this.config.nodes.port,
          password: this.config.nodes.password,
          secure: this.config.nodes.secure,
        },
      ],

to nodes: this.config.nodes, and after that you can add multiples lavalink

Not work like this

it works with me

But lavasfy how to connect that ?

from lavamusic.

LewdHuTao avatar LewdHuTao commented on August 23, 2024

just change this line

nodes: [
        {
          identifier: this.config.nodes.id,
          host: this.config.nodes.host,
          port: this.config.nodes.port,
          password: this.config.nodes.password,
          secure: this.config.nodes.secure,
        },
      ],

to nodes: this.config.nodes, and after that you can add multiples lavalink

Not work like this

it works with me

But lavasfy how to connect that ?

i dont change anything to lavasfy
Screenshot 2022-01-03 200132
so as you can see here i set 3 lavalinks and all of them is connected also i already test if one of the lavalink is down it will auto connect to other lavalink

from lavamusic.

appujet avatar appujet commented on August 23, 2024

Play Spotify url

from lavamusic.

LewdHuTao avatar LewdHuTao commented on August 23, 2024

Play Spotify url

yea i realized it doesnt work if you use spotify url, but theres other way how to make it works, you can try better-erela.js-spotify package, here the link: https://www.npmjs.com/package/better-erela.js-spotify but the other problem is you have to make a lot of changes to the codes since you need to remove lavasfy and make a new play command. you can dm me and ill help you here my discord id: ɯnɔ#5230

from lavamusic.

LewdHuTao avatar LewdHuTao commented on August 23, 2024

i also recommend you to switch from lavasfy to better-erela.js-spotify since it doesnt used spotify api key and the search is more accurate

from lavamusic.

appujet avatar appujet commented on August 23, 2024

Play Spotify url

yea i realized it doesnt work if you use spotify url, but theres other way how to make it works, you can try better-erela.js-spotify package, here the link: https://www.npmjs.com/package/better-erela.js-spotify but the other problem is you have to make a lot of changes to the codes since you need to remove lavasfy and make a new play command. you can dm me and ill help you here my discord id: ɯnɔ#5230

Thanks but I can do

from lavamusic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.