We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7dbb0b commit a3c2edfCopy full SHA for a3c2edf
src/main/kotlin/me/ddivad/judgebot/dataclasses/GuildMember.kt
@@ -113,7 +113,7 @@ data class GuildMember(
113
}
114
115
fun checkPointDecay(guild: Guild, configuration: GuildConfiguration) = with(this.getGuildInfo(guild.id.asString)) {
116
- val weeksSincePointsDecayed = Weeks.weeksBetween(DateTime(this.pointDecayTimer), DateTime().plusWeeks(6)).weeks
+ val weeksSincePointsDecayed = Weeks.weeksBetween(DateTime(this.pointDecayTimer), DateTime()).weeks
117
if (weeksSincePointsDecayed > 0) {
118
val pointsToRemove = configuration.infractionConfiguration.pointDecayPerWeek * weeksSincePointsDecayed
119
this.points -= pointsToRemove
0 commit comments