70cbe323560d04b09e79fcab7751ce6315e90599
2 #Artificial Pseudo Inteligence using megahal package :-)
3 #More info: http://megahal.alioth.debian.org/
5 AI_LOUD
=false
#enable loud replies (otherwise will be learning only :-)
6 AI_LOUD_UNAVAILABLE
=true
; #enable loud replies when not available :-)
8 $AI_LOUD_UNAVAILABLE && [ "$ANSW_L_STATUS" != 'available' ] && AI_LOUD
=true
9 AI_ANSW
="$({ echo "$ANSW_MSG.
" | sed -e 's/#//g' && echo -e '\n#quit\n'; } | timeout 23 megahal -p -b -w | tail -n1)"
10 $AI_LOUD && [ -n "$AI_ANSW" ] && echo -n "[MegaHALuz]: $AI_ANSW"
This page took 0.247475 seconds and 3 git commands to generate.