This commit is contained in:
Your Name 2024-09-25 03:34:13 +00:00
parent 730dfb435c
commit e3590a06a7

View File

@ -112,7 +112,7 @@ wireguard-networking() {
attacker-protection() {
watch
module-nostr
bash $MODULES/module-nostr.sh "$i" "$DATE"
bot-search
}
@ -357,18 +357,6 @@ message() {
echo "$1" | /root/go/bin/algia dm-post -u 33c74427f3b2b73d5e38f3e6c991c122a55d204072356f71da49a0e209fb6940 --stdin
}
module-nostr() {
IP=($(grep $DATE $ACCESS | grep "/block=" | cut -d '=' -f2 | cut -d ' ' -f1 | sed 's/"//'))
for i in "${IP[@]}"; do
echo $i
if [[ "$i" == *"npub"* ]]; then
bash /opt/strfry-policies/block.sh $i
else
echo "No Npubs to block"
fi
done
}
test-bots() {
for i in "${SAVED_BOTS[@]}"; do
DATA=$(grep $i $ACCESS | grep -Fivf <(printf '%s\n' "${CRAWLER_DB[@]}"))