Change end date again
This commit is contained in:
parent
1b3224ff5e
commit
152e6d08b5
1 changed files with 7 additions and 4 deletions
|
@ -134,11 +134,11 @@ module.exports = {
|
||||||
/http.:\/\/.*\/(commit|compare|pull)\/.*/g.test(message.content)
|
/http.:\/\/.*\/(commit|compare|pull)\/.*/g.test(message.content)
|
||||||
) {
|
) {
|
||||||
dateVerified = true;
|
dateVerified = true;
|
||||||
verifyReason = `Commit URL - ${message.id} - ${date}`;
|
verifyReason = 'Commit URL';
|
||||||
}
|
}
|
||||||
else if ((message.attachments.size > 0) && verifyReason != 'Commit URL') {
|
else if ((message.attachments.size > 0) && verifyReason != 'Commit URL') {
|
||||||
dateVerified = true;
|
dateVerified = true;
|
||||||
verifyReason = `Attachment - ${message.id} - ${date}`;
|
verifyReason = 'Attachment';
|
||||||
}
|
}
|
||||||
else if ((message.reactions.cache.size > 0) && verifyReason != 'Commit URL' && verifyReason != 'Attachment') {
|
else if ((message.reactions.cache.size > 0) && verifyReason != 'Commit URL' && verifyReason != 'Attachment') {
|
||||||
for (const reaction of message.reactions.cache.values()) {
|
for (const reaction of message.reactions.cache.values()) {
|
||||||
|
@ -146,7 +146,7 @@ module.exports = {
|
||||||
|
|
||||||
if (emojiName === emojiCheck) {
|
if (emojiName === emojiCheck) {
|
||||||
dateVerified = true;
|
dateVerified = true;
|
||||||
verifyReason = `Reaction - ${message.id} - ${date}`;
|
verifyReason = 'Reaction';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,10 @@ module.exports = {
|
||||||
interaction.options.getString('start-date') ??
|
interaction.options.getString('start-date') ??
|
||||||
threadStarterMessage.createdTimestamp,
|
threadStarterMessage.createdTimestamp,
|
||||||
);
|
);
|
||||||
const endDate = new Date();
|
const endDate = new Date(
|
||||||
|
interaction.options.getString('end-date') ??
|
||||||
|
new Date(),
|
||||||
|
);
|
||||||
|
|
||||||
while (currentDate <= endDate) {
|
while (currentDate <= endDate) {
|
||||||
allDays.push(new Date(currentDate));
|
allDays.push(new Date(currentDate));
|
||||||
|
|
Loading…
Reference in a new issue