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=fd3a4cf0b82f956582e28aacef52796a75ddfafc;hp=0000000000000000000000000000000000000000;hb=d5bbca3f8e2ca1284552e2d89fd505dee0e7d987;hpb=2aa9b0a92c77cbc9f9f44b0b5596650a1c7233f1 diff --git a/purple/answerscripts.d/00-megahal.sh b/purple/answerscripts.d/00-megahal.sh new file mode 100755 index 0000000..fd3a4cf --- /dev/null +++ b/purple/answerscripts.d/00-megahal.sh @@ -0,0 +1,5 @@ +#!/bin/sh +#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