Change end date again

This commit is contained in:
Michael 2024-12-30 18:03:52 -06:00
parent 1b3224ff5e
commit 152e6d08b5

View file

@ -134,11 +134,11 @@ module.exports = {
/http.:\/\/.*\/(commit|compare|pull)\/.*/g.test(message.content)
) {
dateVerified = true;
verifyReason = `Commit URL - ${message.id} - ${date}`;
verifyReason = 'Commit URL';
}
else if ((message.attachments.size > 0) && verifyReason != 'Commit URL') {
dateVerified = true;
verifyReason = `Attachment - ${message.id} - ${date}`;
verifyReason = 'Attachment';
}
else if ((message.reactions.cache.size > 0) && verifyReason != 'Commit URL' && verifyReason != 'Attachment') {
for (const reaction of message.reactions.cache.values()) {
@ -146,7 +146,7 @@ module.exports = {
if (emojiName === emojiCheck) {
dateVerified = true;
verifyReason = `Reaction - ${message.id} - ${date}`;
verifyReason = 'Reaction';
break;
}
}
@ -179,7 +179,10 @@ module.exports = {
interaction.options.getString('start-date') ??
threadStarterMessage.createdTimestamp,
);
const endDate = new Date();
const endDate = new Date(
interaction.options.getString('end-date') ??
new Date(),
);
while (currentDate <= endDate) {
allDays.push(new Date(currentDate));