This commit is contained in:
Erik 2022-07-13 00:50:41 +03:00
parent d1da5b1629
commit 09f4d010df
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 2 additions and 3 deletions

View File

@ -187,7 +187,6 @@ class ModerationManager {
} }
for (const [, data] of Object.entries(fails)) { for (const [, data] of Object.entries(fails)) {
console.log(data);
const { dictionary, targetType } = data.infraction; const { dictionary, targetType } = data.infraction;
const str = `${Emojis.failure} ${invoker.format('INFRACTION_FAIL', { const str = `${Emojis.failure} ${invoker.format('INFRACTION_FAIL', {
infraction: dictionary.present, infraction: dictionary.present,
@ -250,7 +249,7 @@ class ModerationManager {
expiration = 0; expiration = 0;
if (modpoints.enabled) { if (modpoints.enabled) {
points = info.points || modpoints.points[type]; points = info.points || modpoints.points[type];
expiration = info.expiration || modpoints.expirations[type] * 1000; expiration = info.expiration || modpoints.expirations[type];
if(reason) for (const [phrase, amount] of Object.entries(modpoints.associations)) { if(reason) for (const [phrase, amount] of Object.entries(modpoints.associations)) {
if (reason.toLowerCase().includes(phrase)) points = amount; if (reason.toLowerCase().includes(phrase)) points = amount;
} }

View File

@ -187,7 +187,7 @@ class Infraction {
description += `\n${this.guild.format('INFRACTION_DESCRIPTIONPOINTS', { description += `\n${this.guild.format('INFRACTION_DESCRIPTIONPOINTS', {
points: this.points, points: this.points,
total: this.totalPoints, total: this.totalPoints,
expires: Util.duration(this.pointsExpiration) expires: Util.duration(this.points)
})}`; })}`;
} }