ratox-nuggets

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

commit 4fb8fbe179a8211665b1fc242bd65775ba63b80c
parent 376b683cd07ad2873f2674293d9161c211386bfc
Author: Myroslav Opyr <myroslav@quintagroup.com>
Date:   Thu,  9 Oct 2014 21:02:23 +0300

Friendly bot would need a way to approve all fiend requests

Diffstat:
Arat-autoapprove | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/rat-autoapprove b/rat-autoapprove @@ -0,0 +1,19 @@ +#!/bin/sh +# raTox Automatic Friend Request Approval +# + +LIBRARY_LOCATION=`dirname $0` +. $LIBRARY_LOCATION/functions + +[ ! -f .ratox.data ] && { + log "Should be run in root of ratox profile" + exit 1 +} + +while true; do + find request/out/ -type p | while read request; do + echo 1 > $request + log "Approved $request" + done + sleep 1 +done