Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

279
Vistas
How to run multiple clients in a single music bot node?

I am currently attempting to run multiple bots in the same node, I successfully made 2 bots come online and respond to their defined prefixes, everything runs perfectly fine, except for the "play" command. If I were to type "1play" the Bot#2 would be the one joining the voice chat to play the music, even though Bot#1 does reply to the message with "Song Found!". If I were to type "2play" the Bot#2 does what it should.

Therefore, my current issue is with the play command, it makes the last bot in my index.js file start to play the music. I am making use of lavalink through the "lavasfy" npm package, and my guess is that the package only supports the usage for 1 client, and not 2. Though I wanted to know if there is any way to create more than a single client in the same node for this case.

Index.js: https://srcshare.io/?id=61b6a96e237093192c98c77d

DiscordMusicBot: https://srcshare.io/?id=61b6a994237093da4698c77e

DiscordMusicBot2:https://srcshare.io/?id=61b6a9c8237093192998c77f

I am aware both of the DiscordMusicBot files are running under the same "events" and "commands" folders, though that is not the cause of my current issue.

Thanks beforehand!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda