• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

208
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 3 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 Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda