|
|
|
@ -60,7 +60,6 @@ class vidshittifyerCommand extends Command {
|
|
|
|
|
loadingmsg.delete();
|
|
|
|
|
return message.channel.send('An error has occured, I can\'t download from the link you provided.');
|
|
|
|
|
}
|
|
|
|
|
loadingmsg.delete();
|
|
|
|
|
shittify();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
@ -70,6 +69,7 @@ class vidshittifyerCommand extends Command {
|
|
|
|
|
function shittify() {
|
|
|
|
|
exec(`ffmpeg -i ${input} ${option} -vcodec libx264 -r 5 -r 15 ${output}`)
|
|
|
|
|
.then(() => {
|
|
|
|
|
loadingmsg.delete();
|
|
|
|
|
message.delete();
|
|
|
|
|
return message.channel.send({files: [output]})
|
|
|
|
|
.catch(err => {
|
|
|
|
|