From c003e27609edebfdeb1c209d03697421cb7e9e7c Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 9 Dec 2018 01:54:02 +0100 Subject: [PATCH] it caused problem --- commands/fun/ttsvc.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/commands/fun/ttsvc.js b/commands/fun/ttsvc.js index 00b1349..f437a55 100644 --- a/commands/fun/ttsvc.js +++ b/commands/fun/ttsvc.js @@ -66,9 +66,7 @@ module.exports = class ttsvcCommand extends Command { voiceChannel.join().then(connection => { const dispatcher = connection.playStream('./tts.mp3'); // End at then end of the audio stream - setTimeout(function(){ dispatcher.on('end', () => voiceChannel.leave()); - }, 2000); }); }); });