Fixed the 1 year attachment requirement

This commit is contained in:
supositware 2021-03-04 13:34:14 +01:00
parent b31b37051f
commit 57ad39102f

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.setMonth(date.getMonth() - 12)) { if (Attachment[0] && message.author.createdAt > date.setFullYear(date.getFullYear() - 1 )) {
return message.channel.send('Your account need to be 6 months or older to be able to send attachment!'); return message.channel.send('Your account need to be 1 year or older to be able to send attachment!');
} }
if (args.text) { if (args.text) {