Merge branch 'dev'
commit
96bf8b4dc5
|
@ -2,8 +2,7 @@
|
||||||
/* eslint-disable no-continue */
|
/* eslint-disable no-continue */
|
||||||
/* eslint-disable default-case */
|
/* eslint-disable default-case */
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { v4 as uuid } from 'uuid';
|
import { Message, User } from 'eris';
|
||||||
import { Message, User, TextChannel } from 'eris';
|
|
||||||
import { Client, Command, RichEmbed } from '../class';
|
import { Client, Command, RichEmbed } from '../class';
|
||||||
import { getTotalMessageCount } from '../intervals/score';
|
import { getTotalMessageCount } from '../intervals/score';
|
||||||
import Score_Hist from './score_hist';
|
import Score_Hist from './score_hist';
|
||||||
|
@ -114,7 +113,7 @@ export default class Score extends Command {
|
||||||
const testDate = (new Date(new Date(inq.date).setHours(1460)));
|
const testDate = (new Date(new Date(inq.date).setHours(1460)));
|
||||||
// eslint-disable-next-line no-useless-escape
|
// eslint-disable-next-line no-useless-escape
|
||||||
if (testDate > new Date()) {
|
if (testDate > new Date()) {
|
||||||
desc += `${inq.iid ? `__[${inq.iid}]__\n` : ''}**Department/Service:** ${inq.name.replace(/\*/gmi, '')}\n**Reason:** ${inq.reason}\n**Date:** ${inq.date.toLocaleString('en-us')}\n**Expires:** ${moment(testDate).calendar()}\n\n`;
|
desc += `${inq.iid ? `__[${inq.iid}]__\n` : ''}**Department/Service:** ${inq.name.replace(/\*/gmi, '')}\n**Reason:** ${inq.reason}\n**Date:** ${moment(inq.date).format('MMMM Do YYYY, h:mm:ss')}\n**Expires:** ${moment(testDate).calendar()}\n\n`;
|
||||||
inqAdded++;
|
inqAdded++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -213,8 +213,8 @@ export default class Whois extends Command {
|
||||||
if (serverAcknowledgements.length > 0) {
|
if (serverAcknowledgements.length > 0) {
|
||||||
embed.addField('Acknowledgements', serverAcknowledgements[0]);
|
embed.addField('Acknowledgements', serverAcknowledgements[0]);
|
||||||
}
|
}
|
||||||
if (ackResolve?.acknowledgements?.length > 0) {
|
if (ackResolve?.additionalRoles?.length > 0) {
|
||||||
embed.addField('Bot Acknowledgements', ackResolve.acknowledgements.join(', '));
|
embed.addField('Additional Acknowledgements', ackResolve.acknowledgements.join(', '));
|
||||||
}
|
}
|
||||||
embed.setFooter(this.client.user.username, this.client.user.avatarURL);
|
embed.setFooter(this.client.user.username, this.client.user.avatarURL);
|
||||||
embed.setTimestamp();
|
embed.setTimestamp();
|
||||||
|
|
Loading…
Reference in New Issue