forked from Galactic/galactic-bot
fixes
This commit is contained in:
parent
d1da5b1629
commit
09f4d010df
@ -187,7 +187,6 @@ class ModerationManager {
|
||||
}
|
||||
|
||||
for (const [, data] of Object.entries(fails)) {
|
||||
console.log(data);
|
||||
const { dictionary, targetType } = data.infraction;
|
||||
const str = `${Emojis.failure} ${invoker.format('INFRACTION_FAIL', {
|
||||
infraction: dictionary.present,
|
||||
@ -250,7 +249,7 @@ class ModerationManager {
|
||||
expiration = 0;
|
||||
if (modpoints.enabled) {
|
||||
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.toLowerCase().includes(phrase)) points = amount;
|
||||
}
|
||||
|
@ -187,7 +187,7 @@ class Infraction {
|
||||
description += `\n${this.guild.format('INFRACTION_DESCRIPTIONPOINTS', {
|
||||
points: this.points,
|
||||
total: this.totalPoints,
|
||||
expires: Util.duration(this.pointsExpiration)
|
||||
expires: Util.duration(this.points)
|
||||
})}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user