feat(botfilter): add sumScore

This commit is contained in:
hoelee committed 2026-03-09 15:23:00 +08:00
1 parent 6e9491d7c6
commit f8019906df
1 file changed
+7
+7
View File
@@ -214,3 +214,10 @@ func (c *clientCache) ensureCapacityLocked(now time.Time) {
}
}
func sumScore(events []scoreEvent) int {
total := 0
for _, event := range events {
total += event.points
}
return total
}