forked from Supositware/Haha-Yes
Rename ready to compressed
This commit is contained in:
parent
03e033804d
commit
fa041e1eb0
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ class DownloadCommand extends Command {
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
input: `${os.tmpdir()}/${fileName}.mp4`,
|
input: `${os.tmpdir()}/${fileName}.mp4`,
|
||||||
output: `${os.tmpdir()}/${fileName}Ready.mp4`,
|
output: `${os.tmpdir()}/${fileName}compressed.mp4`,
|
||||||
preset: 'General/Gmail Small 10 Minutes 288p30'
|
preset: 'General/Gmail Small 10 Minutes 288p30'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ class DownloadCommand extends Command {
|
||||||
});
|
});
|
||||||
handbrake.on('end', function () {
|
handbrake.on('end', function () {
|
||||||
message.delete();
|
message.delete();
|
||||||
return message.channel.send(`Downloaded by ${message.author.username}`, { files: [`${os.tmpdir()}/${fileName}Ready.mp4`] })
|
return message.channel.send(`Downloaded by ${message.author.username}`, { files: [`${os.tmpdir()}/${fileName}compressed.mp4`] })
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
return message.channel.send('File too big');
|
return message.channel.send('File too big');
|
||||||
|
|
Loading…
Reference in a new issue