I’m currently coding a Discord Music bot, but whenever I run it on one project the music has good quality and runs smooth. Then, whenever I move the same code to a different project it runs poor, low quality and a bit of lag. Any idea how this is happening and how I can solve this?
play.js is the command that searches and plays the music.
In both projects it’s located at