stormbot/modules/talk.sh

11 lines
154 B
Bash
Raw Normal View History

2013-07-19 13:42:58 -04:00
#! /bin/sh
2013-07-19 15:44:37 -04:00
arg1=$1
arg2=$2
shift 2
echo "$@" >> input
2013-07-19 13:42:58 -04:00
cat input | java -jar ./eliza_java.jar > output
2013-07-19 15:44:37 -04:00
echo "PRIVMSG $arg2 :$arg1: `tail -n 1 output`"