1
0
Fork 0

someone send help

akairo
Supositware 6 years ago
parent 6c62f09daa
commit d3630feef9

@ -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!');
} }

Loading…
Cancel
Save