forked from Galactic/galactic-bot
apply modpoints multiplier
This commit is contained in:
parent
2daf1cfbd7
commit
b5bf445ce4
@ -34,7 +34,7 @@ Failed to {infraction} {targetType} {target} because {reason}.
|
|||||||
**Reason:** {reason}
|
**Reason:** {reason}
|
||||||
|
|
||||||
[INFRACTION_DESCRIPTIONPOINTS]
|
[INFRACTION_DESCRIPTIONPOINTS]
|
||||||
**Points:** {points} | **Total Points**: {total}
|
**Points:** {points} (expires {expires}) | **Total Points**: {total}
|
||||||
|
|
||||||
[INFRACTION_DESCRIPTIONDURATION]
|
[INFRACTION_DESCRIPTIONDURATION]
|
||||||
**Duration:** {duration}
|
**Duration:** {duration}
|
||||||
|
@ -257,6 +257,7 @@ class ModerationManager {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (modpoints.multiplier) expiration *= points;
|
||||||
}
|
}
|
||||||
|
|
||||||
const verify = async (infraction, escalated = false) => {
|
const verify = async (infraction, escalated = false) => {
|
||||||
|
@ -189,11 +189,11 @@ class Infraction {
|
|||||||
description += `\n${this.guild.format('INFRACTION_DESCRIPTIONDURATION', { duration: Util.humanise(Math.floor(this.duration / 1000)) })}`;
|
description += `\n${this.guild.format('INFRACTION_DESCRIPTIONDURATION', { duration: Util.humanise(Math.floor(this.duration / 1000)) })}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.points && this.points > 0) { //TODO: Add expiration to INFRACTION_DESCRIPTIONPOINTS
|
if (this.points && this.points > 0) {
|
||||||
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.points)
|
expires: `<t:${Math.round(this.expiration / 1000)}:R>`
|
||||||
})}`;
|
})}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user