initial commit

This commit is contained in:
MeaTLoTioN 2021-10-15 18:06:46 +01:00
parent bf31766d24
commit fd771621e9

17
twitupd.sh Normal file
View 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 "[+] $I"
echo "$(date) [+] $I" >> $MYS_LOGS/twitupd.log
else
echo "[✔] $I"
echo "$(date) [✔] $I" >> $MYS_LOGS/twitupd.log
fi
done