pls help me

This commit is contained in:
Loic Bersier 2018-12-09 02:16:53 +01:00
parent 27d0e73ca6
commit 134f799556

View file

@ -66,7 +66,7 @@ module.exports = class ttsvcCommand extends Command {
voiceChannel.join().then(connection => {
const dispatcher = connection.playStream('./ttsvc.mp3');
// End at then end of the audio stream
dispatcher.on('finish', () => setTimeout(function(){
dispatcher.on('end', () => setTimeout(function(){
voiceChannel.leave();
}, 2000));
});