forked from Supositware/Haha-Yes
fixed for vc
This commit is contained in:
parent
3730aecd87
commit
ae01c51473
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ class dectalkvcCommand extends Command {
|
||||||
args.decMessage = encodeURI(args.decMessage);
|
args.decMessage = encodeURI(args.decMessage);
|
||||||
|
|
||||||
if (process.platform == 'win32') {
|
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 => {
|
.catch(err => {
|
||||||
return console.error(err);
|
return console.error(err);
|
||||||
})
|
})
|
||||||
|
@ -41,7 +41,7 @@ class dectalkvcCommand 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('./dectalk/dectalkvc.wav');
|
const dispatcher = connection.play('./dectalk/dectalk.wav');
|
||||||
dispatcher.once('finish', () => voiceChannel.leave());
|
dispatcher.once('finish', () => voiceChannel.leave());
|
||||||
dispatcher.once('error', () => voiceChannel.leave());
|
dispatcher.once('error', () => voiceChannel.leave());
|
||||||
return null;
|
return null;
|
||||||
|
@ -52,7 +52,7 @@ class dectalkvcCommand extends Command {
|
||||||
});
|
});
|
||||||
|
|
||||||
} else if (process.platform == 'linux') {
|
} 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 => {
|
.catch(err => {
|
||||||
return console.error(err);
|
return console.error(err);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue