Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

274
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda