X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=purple%2Fanswerscripts.d%2F00-megahal.sh;fp=purple%2Fanswerscripts.d%2F00-megahal.sh;h=940bb3846cf715fbf16a06771cd0e0db821ed620;hp=fd3a4cf0b82f956582e28aacef52796a75ddfafc;hb=849af27c61f37313a7b8df74bcfa7f7e918f825e;hpb=d5bbca3f8e2ca1284552e2d89fd505dee0e7d987 diff --git a/purple/answerscripts.d/00-megahal.sh b/purple/answerscripts.d/00-megahal.sh index fd3a4cf..940bb38 100755 --- a/purple/answerscripts.d/00-megahal.sh +++ b/purple/answerscripts.d/00-megahal.sh @@ -2,4 +2,4 @@ #Artificial Pseudo Inteligence using megahal package :-) #More info: http://megahal.alioth.debian.org/ #alias cat=true #silent mode, comment out to enable loud replies :-) -echo -n '[MegaHAL]:' $({ echo "$ANSW_MSG" && echo -e '\n#quit\n'; } | megahal -p -b | tail -n1) | cat +echo -n '[MegaHAL]:' $({ echo "$ANSW_MSG" && echo -e '\n#quit\n'; } | megahal -p -b -w | tail -n1) | cat