URI: 
       Add locate-cake-hater script. - annna - Annna the nice friendly bot.
  HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
       ---
   DIR commit b71469abcae17ab633d1aed026e0da68845ba7d3
   DIR parent 66ec0f70d8bf610332500b401f27592e82d2effe
  HTML Author: Annna Robert-Houdin <annna@bitreich.org>
       Date:   Fri, 13 Nov 2020 20:40:15 +0100
       
       Add locate-cake-hater script.
       
       Thanks Parazyd for the work!
       
       Diffstat:
         A locate-cake-hater                   |      24 ++++++++++++++++++++++++
       
       1 file changed, 24 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/locate-cake-hater b/locate-cake-hater
       @@ -0,0 +1,24 @@
       +#!/bin/sh
       +
       +export PATH="/home/annna/bin:$PATH"
       +
       +ip="$1"
       +port="$2"
       +
       +case "$ip" in
       +*:*)
       +        country="$(geoiplookup6 "$ip" | awk '{print $NF}')"
       +        ip="[$ip]"
       +        ;;
       +*)
       +        country="$(geoiplookup "$ip" | awk '{print $NF}')"
       +        ;;
       +esac
       +
       +if [ -z "$country" ];
       +then
       +        country="somewhere unknown"
       +fi
       +
       +annna-say -c "#bitreich-tv" "$ip:$port cake hater from $country appeared."
       +