diff --git a/commands/fun/ttsvc.js b/commands/fun/ttsvc.js index 130e31a..cfdf796 100644 --- a/commands/fun/ttsvc.js +++ b/commands/fun/ttsvc.js @@ -64,12 +64,11 @@ module.exports = class ttsvcCommand extends Command { message.say('I leaved the channel'); } else voiceChannel.join().then(connection => { - const stream = "./tts.mp3" const dispatcher = connection.playStream('./tts.mp3'); // End at then end of the audio stream setTimeout(function(){ dispatcher.on('end', () => voiceChannel.leave()); - }, 5000); + }, 3000); }); }); });