testing fix

This commit is contained in:
loicbersier 2019-05-20 00:14:24 +02:00
parent 3d93d3d3c4
commit f797af8bf8

View file

@ -37,8 +37,8 @@ class dectalkvcCommand extends Command {
},
}).then(async (result) => {
const outputFilename = './dectalkvc.wav';
fs.writeFileSync(outputFilename, result.data);
fs.writeFileSync(outputFilename, result.data)
.then(async () => {
const voiceChannel = message.member.voice.channel;
if (!voiceChannel) return message.say('Please enter a voice channel first.');
try {
@ -52,6 +52,7 @@ class dectalkvcCommand extends Command {
return message.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
});
});
}
}