diff --git a/commands/fun/tts/dectalk.js b/commands/fun/tts/dectalk.js index 9321c204..8353f378 100644 --- a/commands/fun/tts/dectalk.js +++ b/commands/fun/tts/dectalk.js @@ -39,7 +39,7 @@ class dectalkCommand extends Command { return message.channel.send('Oh no! an error has occurred!'); }) .then(() => { - return message.channel.send({files: [`${message.id}_dectalk.wav`]}); + return message.channel.send({files: [`./dectalk/${message.id}_dectalk.wav`]}); }); } else if (process.platform == 'linux' || process.platform == 'darwin') { let loadingmsg = await message.channel.send('Processing ( this can take some time ) '); @@ -52,7 +52,7 @@ class dectalkCommand extends Command { }) .then(() => { loadingmsg.delete(); - return message.channel.send({files: [`${message.id}_dectalk.wav`]}); + return message.channel.send({files: [`./dectalk/${message.id}_dectalk.wav`]}); }); } } diff --git a/commands/fun/tts/dectalkvc.js b/commands/fun/tts/dectalkvc.js index 541b7e12..efb9b083 100644 --- a/commands/fun/tts/dectalkvc.js +++ b/commands/fun/tts/dectalkvc.js @@ -43,7 +43,7 @@ class dectalkvcCommand extends Command { if (!voiceChannel) return message.channel.send('Please enter a voice channel first.'); try { const connection = await voiceChannel.join(); - const dispatcher = connection.play(`${message.id}_dectalk.wav`); + const dispatcher = connection.play(`./dectalk/${message.id}_dectalk.wav`); dispatcher.once('finish', () => voiceChannel.leave()); dispatcher.once('error', () => voiceChannel.leave()); return null; @@ -68,7 +68,7 @@ class dectalkvcCommand extends Command { try { loadingmsg.delete(); const connection = await voiceChannel.join(); - const dispatcher = connection.play(`${message.id}_dectalk.wav`); + const dispatcher = connection.play(`./dectalk/${message.id}_dectalk.wav`); dispatcher.once('finish', () => voiceChannel.leave()); dispatcher.once('error', () => voiceChannel.leave()); return null;