Comments (11)
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.
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.
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.
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 lavalinkNot work like this
it works with me
from lavamusic.
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.
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 lavalinkNot work like this
it works with me
But lavasfy how to connect that ?
from lavamusic.
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 lavalinkNot work like this
it works with me
But lavasfy how to connect that ?
i dont change anything to lavasfy
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.
Play Spotify url
from lavamusic.
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.
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.
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)
- Lists of [ERROR]
- Bot not connecting to the channel HOT 1
- error TS2339: Property 'emit' does not exist on type 'ShoukakuClient'. HOT 21
- help HOT 1
- Unhandled Rejection at: Promise | Used disallowed intents HOT 1
- docker compose error HOT 3
- Problem with playlist HOT 1
- Errors HOT 2
- Issue with Queue command HOT 1
- DiscordAPIError[0]: 404: Not Found HOT 1
- Already compiled the bot, still giving errors HOT 3
- Docker error v4.6.6 HOT 1
- Error on main tag in docker HOT 1
- Bot Activity
- Doesnt play anything and getting some errors on commands HOT 10
- TypeError: Cannot set properties of undefined (setting 'locale') HOT 3
- Locale, lavalink HOT 8
- Configuring LavaMusic - Using YouTube Source + LavaLink + LavaMusic
- Bug HOT 1
- Lists of [ERROR] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lavamusic.