From aac6274f536ed933de1579eb7d0c8443905f2172 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 9 Dec 2018 01:48:50 +0100 Subject: [PATCH] --- commands/fun/ttsvc.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/fun/ttsvc.js b/commands/fun/ttsvc.js index 130e31ad..cfdf7961 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); }); }); });