Forgot to point to the correct directory
This commit is contained in:
parent
772c3b038b
commit
1b3fa24062
2 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ class dectalkCommand extends Command {
|
||||||
return message.channel.send('Oh no! an error has occurred!');
|
return message.channel.send('Oh no! an error has occurred!');
|
||||||
})
|
})
|
||||||
.then(() => {
|
.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') {
|
} else if (process.platform == 'linux' || process.platform == 'darwin') {
|
||||||
let loadingmsg = await message.channel.send('Processing ( this can take some time ) <a:loadingmin:527579785212329984>');
|
let loadingmsg = await message.channel.send('Processing ( this can take some time ) <a:loadingmin:527579785212329984>');
|
||||||
|
@ -52,7 +52,7 @@ class dectalkCommand extends Command {
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
loadingmsg.delete();
|
loadingmsg.delete();
|
||||||
return message.channel.send({files: [`${message.id}_dectalk.wav`]});
|
return message.channel.send({files: [`./dectalk/${message.id}_dectalk.wav`]});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ class dectalkvcCommand extends Command {
|
||||||
if (!voiceChannel) return message.channel.send('Please enter a voice channel first.');
|
if (!voiceChannel) return message.channel.send('Please enter a voice channel first.');
|
||||||
try {
|
try {
|
||||||
const connection = await voiceChannel.join();
|
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('finish', () => voiceChannel.leave());
|
||||||
dispatcher.once('error', () => voiceChannel.leave());
|
dispatcher.once('error', () => voiceChannel.leave());
|
||||||
return null;
|
return null;
|
||||||
|
@ -68,7 +68,7 @@ class dectalkvcCommand extends Command {
|
||||||
try {
|
try {
|
||||||
loadingmsg.delete();
|
loadingmsg.delete();
|
||||||
const connection = await voiceChannel.join();
|
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('finish', () => voiceChannel.leave());
|
||||||
dispatcher.once('error', () => voiceChannel.leave());
|
dispatcher.once('error', () => voiceChannel.leave());
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue