|
|
@ -37,8 +37,8 @@ class dectalkvcCommand extends Command {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}).then(async (result) => {
|
|
|
|
}).then(async (result) => {
|
|
|
|
const outputFilename = './dectalkvc.wav';
|
|
|
|
const outputFilename = './dectalkvc.wav';
|
|
|
|
fs.writeFileSync(outputFilename, result.data)
|
|
|
|
fs.writeFile(outputFilename, result.data, async function(err) {
|
|
|
|
.then(async () => {
|
|
|
|
if (err) console.error(err);
|
|
|
|
const voiceChannel = message.member.voice.channel;
|
|
|
|
const voiceChannel = message.member.voice.channel;
|
|
|
|
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
|
|
|
if (!voiceChannel) return message.say('Please enter a voice channel first.');
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|