From 57ad39102f053b80e1f9fa7b458e8c9f21f81923 Mon Sep 17 00:00:00 2001
From: supositware <loic.bersier1@gmail.com>
Date: Thu, 4 Mar 2021 13:34:14 +0100
Subject: [PATCH] Fixed the 1 year attachment requirement

---
 commands/general/tweet.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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