Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

276
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!