add things

pull/29/head
Matthew 2020-10-28 20:33:21 -04:00
parent 2e83cb7d55
commit 6485d94a55
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
/* eslint-disable no-continue */
/* eslint-disable default-case */
import moment from 'moment';
import { v4 as uuid } from 'uuid';
import { Message, User, TextChannel } from 'eris';
import { Client, Command, RichEmbed } from '../class';
@ -164,7 +165,7 @@ export default class Score extends Command {
score.inquiries.forEach((inq) => {
const testDate = (new Date(new Date(inq.date).setHours(2190)));
// eslint-disable-next-line no-useless-escape
if (testDate > new Date()) desc += `${inq.id ? `__[${inq.id}]__\n` : ''}**Department/Service:** ${inq.name.replace(/\*/gmi, '')}\n**Reason:** ${inq.reason}\n**Date:** ${inq.date.toLocaleString('en-us')} ET\n\n`;
if (testDate > new Date()) desc += `${inq.id ? `__[${inq.id}]__\n` : ''}**Department/Service:** ${inq.name.replace(/\*/gmi, '')}\n**Reason:** ${inq.reason}\n**Date:** ${inq.date.toLocaleString('en-us')} ET\n**Expires:** ${moment(testDate).fromNow()} | ${moment(testDate).calendar()}\n\n`;
});
embed.setDescription(desc);
}