fixes
parent
2f7efcec7b
commit
726d253c74
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue