someone send help

This commit is contained in:
Supositware 2019-01-18 22:33:50 +01:00
parent 6c62f09daa
commit d3630feef9

View file

@ -56,7 +56,10 @@ class TtsvcCommand extends Command {
if (message.member.voice.channel) { if (message.member.voice.channel) {
const connection = await message.member.voice.channel.join(); const connection = await message.member.voice.channel.join();
connection.play('../../ttsvc'); const dispatcher = connection.play('../../ttsvc.mp3');
dispatcher.on('finish', () => {
dispatcher.destroy();
});
} else { } else {
message.reply('You need to join a voice channel first!'); message.reply('You need to join a voice channel first!');
} }