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