From ae01c514730d1b3e0edc0d52fdea6c0d1181d7db Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 18 Jul 2019 00:07:27 +0200 Subject: [PATCH] fixed for vc --- commands/fun/tts/dectalkvc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/fun/tts/dectalkvc.js b/commands/fun/tts/dectalkvc.js index df5392c9..9e632d4e 100644 --- a/commands/fun/tts/dectalkvc.js +++ b/commands/fun/tts/dectalkvc.js @@ -32,7 +32,7 @@ class dectalkvcCommand extends Command { args.decMessage = encodeURI(args.decMessage); if (process.platform == 'win32') { - exec(`cd .\\dectalk && .\\say.exe -w dectalk.wav "${args.decMessage}"`) + exec(`cd .\\dectalk && .\\say.exe -w dectalkvc.wav "${args.decMessage}"`) .catch(err => { return console.error(err); }) @@ -41,7 +41,7 @@ class dectalkvcCommand extends Command { if (!voiceChannel) return message.say('Please enter a voice channel first.'); try { const connection = await voiceChannel.join(); - const dispatcher = connection.play('./dectalk/dectalkvc.wav'); + const dispatcher = connection.play('./dectalk/dectalk.wav'); dispatcher.once('finish', () => voiceChannel.leave()); dispatcher.once('error', () => voiceChannel.leave()); return null; @@ -52,7 +52,7 @@ class dectalkvcCommand extends Command { }); } else if (process.platform == 'linux') { - exec(`cd dectalk && DISPLAY=:0.0 wine say.exe -w dectalk.wav "${args.decMessage}"`) + exec(`cd dectalk && DISPLAY=:0.0 wine say.exe -w dectalkvc.wav "${args.decMessage}"`) .catch(err => { return console.error(err); })