Problem:
When you skip multiple songs (11+), you get a warning from Node.js saying you have got 11+ event listeners.
Potential solution:
A pointer-based queue system. Currently, when a queue runs it sits in a while loop, and when the song finishes, the while loop condition resolves to true from it being a promise and when the queue ends it resolves to null. I think removing the while loop, making a pointer-based queue with good event handling will work.
Comments:
This does not break the bot, but it needs optimising!
Problem: When you skip multiple songs (11+), you get a warning from Node.js saying you have got 11+ event listeners.
Potential solution: A pointer-based queue system. Currently, when a queue runs it sits in a while loop, and when the song finishes, the while loop condition resolves to true from it being a promise and when the queue ends it resolves to null. I think removing the while loop, making a pointer-based queue with good event handling will work.
Comments: This does not break the bot, but it needs optimising!