|
|
@ -57,7 +57,7 @@ class TtsvcCommand extends Command {
|
|
|
|
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
|
|
|
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const connection = await voiceChannel.join();
|
|
|
|
const connection = await voiceChannel.join();
|
|
|
|
const dispatcher = connection.play('../../ttsvc.mp3');
|
|
|
|
const dispatcher = connection.play('./ttsvc.mp3');
|
|
|
|
dispatcher.once('finish', () => voiceChannel.leave());
|
|
|
|
dispatcher.once('finish', () => voiceChannel.leave());
|
|
|
|
dispatcher.once('error', () => voiceChannel.leave());
|
|
|
|
dispatcher.once('error', () => voiceChannel.leave());
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|