feat(botfilter): add sumScore

This commit is contained in:
hoelee committed 2026-03-10 15:23:00 +08:00
1 parent 4033c254dc
commit bf3bd09c20
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
}