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)) {
|
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;
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
})}`;
|
})}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user