diff --git a/commands/fun/ttsvc.js b/commands/fun/ttsvc.js index 43c42b43..c231cef5 100644 --- a/commands/fun/ttsvc.js +++ b/commands/fun/ttsvc.js @@ -67,7 +67,9 @@ module.exports = class ttsvcCommand extends Command { const stream = "./tts.mp3" const dispatcher = connection.playStream('./tts.mp3'); // End at then end of the audio stream - await dispatcher.on('end', () => voiceChannel.leave()); + setTimeout(function(){ + dispatcher.on('end', () => voiceChannel.leave()); + }, 1000); }); }); });