From 134f799556bb6e35ebc1db5e89a7e23ac8bc88a2 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 9 Dec 2018 02:16:53 +0100 Subject: [PATCH] pls help me --- commands/fun/ttsvc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/ttsvc.js b/commands/fun/ttsvc.js index 805b18cb..c324a6c1 100644 --- a/commands/fun/ttsvc.js +++ b/commands/fun/ttsvc.js @@ -66,7 +66,7 @@ module.exports = class ttsvcCommand extends Command { voiceChannel.join().then(connection => { const dispatcher = connection.playStream('./ttsvc.mp3'); // End at then end of the audio stream - dispatcher.on('finish', () => setTimeout(function(){ + dispatcher.on('end', () => setTimeout(function(){ voiceChannel.leave(); }, 2000)); });