From 322118f81d7087066b5acecce1a817e141cb75f5 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Fri, 19 Jul 2013 15:44:37 -0400 Subject: [PATCH] Take the whole sentence --- modules/talk.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/talk.sh b/modules/talk.sh index 42b4902..6d993d9 100755 --- a/modules/talk.sh +++ b/modules/talk.sh @@ -1,6 +1,10 @@ #! /bin/sh -echo $3 >> input +arg1=$1 +arg2=$2 + +shift 2 +echo "$@" >> input cat input | java -jar ./eliza_java.jar > output -echo "PRIVMSG $2 :$1: `tail -n 1 output`" +echo "PRIVMSG $arg2 :$arg1: `tail -n 1 output`"