From 2be2a9cbb3dc4d2097a9ed6719dc402de00f700d Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 9 Dec 2018 02:03:13 +0100 Subject: [PATCH] work pls --- commands/fun/ttsvc.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/commands/fun/ttsvc.js b/commands/fun/ttsvc.js index d3ef168..32350d3 100644 --- a/commands/fun/ttsvc.js +++ b/commands/fun/ttsvc.js @@ -65,11 +65,6 @@ module.exports = class ttsvcCommand extends Command { } else voiceChannel.join().then(connection => { const dispatcher = connection.playStream('./tts.mp3'); - // End at then end of the audio stream - dispatcher.on('end', () => setTimeout(function(){ - voiceChannel.leave(); - }, 2000)); - }); }); }); -}} \ No newline at end of file +})}} \ No newline at end of file