pull/29/head
Matthew 2020-10-31 02:52:22 -04:00
parent 2f7efcec7b
commit 726d253c74
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 5 additions and 1 deletions

View File

@ -167,8 +167,12 @@ export default class Score extends Command {
// eslint-disable-next-line no-useless-escape // 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**Expires:** ${moment(testDate).calendar()}\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).calendar()}\n\n`;
}); });
if (desc.length >= 1900) {
embed.setDescription('__Too many to show, please see https://report.libraryofcode.org__');
} else {
embed.setDescription(desc); embed.setDescription(desc);
} }
}
let color = '🔴'; let color = '🔴';
let additionalText = 'POOR'; let additionalText = 'POOR';
embed.setColor('FF0000'); embed.setColor('FF0000');