Strfry plugin for spam control and curation
go get
go build
provide a URL to the relay.tools API
example using nostr1.com:
https://nostr1.com/api/sconfig/relays/<myRelayID>"
configure strfry
in strfry.conf
writePolicy {
# If non-empty, path to an executable script that implements the writePolicy plugin logic
plugin = "/path/to/spamblaster"
# Number of seconds to search backwards for lookback events when starting the writePolicy plugin (0 for no lookback)
lookbackSeconds = 0
}
[x] basic spam prevention using levenshtein distance
[x] relay modes: private, public, allow_list, block_list