This commit is contained in:
matiashik committed 2026-05-01 13:50:38 +00:00
commit 37107940ef
654 files changed
+67122

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
package policy
import (
"fmt"
"github.com/TecharoHQ/anubis/internal"
"github.com/TecharoHQ/anubis/lib/config"
"github.com/TecharoHQ/anubis/lib/policy/checker"
)
type Bot struct {
Rules checker.Impl
Challenge *config.ChallengeRules
Weight *config.Weight
Name string
Action config.Rule
}
func (b Bot) Hash() string {
return internal.FastHash(fmt.Sprintf("%s::%s", b.Name, b.Rules.Hash()))
}