I want to run my lofi.js file X times for my discord bot
I want to make the command run X times, so people can !playlist then [x songs] x = how many songs they wanna hear from the playlist
what should I add to make it happen?
thank u!
You can create a loop that will run X times, then execute the command inside the loop.
const executeTimes = 5; // Or any other value
for (let i = 0; i < executeTimes; i++) {
<Command>.execute(...);
}