Compare commits

..

No commits in common. "8863fa60509b2bce2c3d3cc9ac1a765db29e4459" and "b31b37051f83f8ba201f0626b20faf4a861b6144" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View file

@ -48,8 +48,8 @@ class tweetCommand extends Command {
} }
// If account is less than 1 year old don't accept attachment // If account is less than 1 year old don't accept attachment
if (Attachment[0] && message.author.createdAt > date.setFullYear(date.getFullYear() - 1 )) { if (Attachment[0] && message.author.createdAt > date.setMonth(date.getMonth() - 12)) {
return message.channel.send('Your account need to be 1 year or older to be able to send attachment!'); return message.channel.send('Your account need to be 6 months or older to be able to send attachment!');
} }
if (args.text) { if (args.text) {

View file

@ -114,10 +114,6 @@ class DownloadCommand extends Command {
message.channel.send({ message.channel.send({
embed: Embed, embed: Embed,
files: [`${os.tmpdir()}/${message.id}compressed.mp4`] files: [`${os.tmpdir()}/${message.id}compressed.mp4`]
})
.catch(err => {
console.error(err);
return message.channel.send(`${err.name}: ${err.message} ${err.message === 'Request entity too large' ? 'The file size is too big' : ''}`);
}); });
}); });
} else { } else {