ratox-nuggets

useful ratox related scripts
git clone git://git.2f30.org/ratox-nuggets
Log | Files | Refs | LICENSE

rat-autoapprove (299B)


      1 #!/bin/sh
      2 # raTox Automatic Friend Request Approval
      3 #
      4 
      5 LIBRARY_LOCATION=`dirname $0`
      6 . $LIBRARY_LOCATION/functions
      7 export PATH=$LIBRARY_LOCATION:$PATH
      8 
      9 check_if_dir
     10 
     11 while true; do
     12 	find request/out/ -type p | while read request; do
     13 		echo 1 > $request
     14 		log "Approved $request"
     15 	done
     16 	sleep 1
     17 done