Skip to content

Commit a3c2edf

Browse files
committed
fix: remove timeframe testing code
1 parent e7dbb0b commit a3c2edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/me/ddivad/judgebot/dataclasses/GuildMember.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ data class GuildMember(
113113
}
114114

115115
fun checkPointDecay(guild: Guild, configuration: GuildConfiguration) = with(this.getGuildInfo(guild.id.asString)) {
116-
val weeksSincePointsDecayed = Weeks.weeksBetween(DateTime(this.pointDecayTimer), DateTime().plusWeeks(6)).weeks
116+
val weeksSincePointsDecayed = Weeks.weeksBetween(DateTime(this.pointDecayTimer), DateTime()).weeks
117117
if (weeksSincePointsDecayed > 0) {
118118
val pointsToRemove = configuration.infractionConfiguration.pointDecayPerWeek * weeksSincePointsDecayed
119119
this.points -= pointsToRemove

0 commit comments

Comments
 (0)