From 27d0e73ca67d3557f043f07792e5e84fd328dcb2 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 9 Dec 2018 02:13:28 +0100 Subject: [PATCH] maybe this --- 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 c324a6c..805b18c 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('end', () => setTimeout(function(){ + dispatcher.on('finish', () => setTimeout(function(){ voiceChannel.leave(); }, 2000)); });