initial commit
This commit is contained in:
parent
bf31766d24
commit
fd771621e9
17
twitupd.sh
Normal file
17
twitupd.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
MYS_DATA="/mystic/data"
|
||||||
|
MYS_LOGS="/mystic/logs"
|
||||||
|
|
||||||
|
IFS=$'\n'
|
||||||
|
for I in $(curl https://www.erb.pw/blacklist 2>/dev/null); do
|
||||||
|
CHECK=$(grep -c $I $MYS_DATA/blacklist.txt)
|
||||||
|
if [[ $CHECK -lt 1 ]]; then
|
||||||
|
echo $I >> $MYS_DATA/blacklist.txt
|
||||||
|
echo "[[1;32m+[0m] $I"
|
||||||
|
echo "$(date) [+] $I" >> $MYS_LOGS/twitupd.log
|
||||||
|
else
|
||||||
|
echo "[[1;33m✔[0m] $I"
|
||||||
|
echo "$(date) [✔] $I" >> $MYS_LOGS/twitupd.log
|
||||||
|
fi
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user