1
0
Fork 0

Diagnosis

refactor/models
Bsian 2020-01-04 15:27:58 +00:00
parent 4f314051b7
commit 6b2bb7293a
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,6 @@ export default class Parseall extends Command {
throw result.reason; throw result.reason;
} }
const { notAfter } = result.value; const { notAfter } = result.value;
this.client.signale.info(notAfter);
// @ts-ignore // @ts-ignore
const timeObject: {years: number, months: number, days: number, hours: number, minutes: number, seconds: number, firstDateWasLater: boolean} = moment.preciseDiff(new Date(), notAfter, true); const timeObject: {years: number, months: number, days: number, hours: number, minutes: number, seconds: number, firstDateWasLater: boolean} = moment.preciseDiff(new Date(), notAfter, true);
const precise: [number, string][] = []; const precise: [number, string][] = [];
@ -60,6 +59,7 @@ export default class Parseall extends Command {
precise.push([t, measurements[index]]); precise.push([t, measurements[index]]);
}); });
const time = precise.filter((n) => n[0]).map(((v) => v.join(''))).join(', '); const time = precise.filter((n) => n[0]).map(((v) => v.join(''))).join(', ');
this.client.signale.info(time);
if (notAfter < new Date()) return `${this.client.stores.emojis.error} **${a.username}** Expired ${time} ago`; if (notAfter < new Date()) return `${this.client.stores.emojis.error} **${a.username}** Expired ${time} ago`;
return `${this.client.stores.emojis.success} **${a.username}** Expires in ${time}`; return `${this.client.stores.emojis.success} **${a.username}** Expires in ${time}`;