testing somethign else

This commit is contained in:
Loic Bersier 2018-12-09 02:06:38 +01:00
parent 2be2a9cbb3
commit 1a3ce12638

View file

@ -63,8 +63,7 @@ module.exports = class ttsvcCommand extends Command {
voiceChannel.leave()
message.say('I leaved the channel');
} else
voiceChannel.join().then(connection => {
const dispatcher = connection.playStream('./tts.mp3');
voiceChannel.join().then(connection =>{const dispatcher = connection.playFile('./tts.mp3');}).catch(err => console.log(err));
dispatcher.on("end", end => {voiceChannel.leave();});
});
});
})}}
})}}