diff --git a/commands/fun/ttsvc.js b/commands/fun/ttsvc.js index 805b18cb..c324a6c1 100644 --- a/commands/fun/ttsvc.js +++ b/commands/fun/ttsvc.js @@ -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)); });