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