bot finished playing
How to understand that a bot has finished playing a file to start a new one?
7 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i know this but i mean a function that return a boolean value cause if i use this my code will be event {code also event{code also event}}
etc
cause i want to play many files
Huh? You can pass a function to an .on(…)
wdym
I mean i need to play file1 when that finish i play file2 etc until file 10
im doing like this rn
but i need to use that event every time
so im searching for a better way
but the problem it listen to the first one i used so it repeats
<AudioResource>.playStream.on('end', () => console.log('song ended'));