diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c459dd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +modules/talk/logs \ No newline at end of file diff --git a/modules/talk.sh b/modules/talk.sh index 45fea22..96cb852 100755 --- a/modules/talk.sh +++ b/modules/talk.sh @@ -3,7 +3,7 @@ arg1=$1 # sender (the person I am talking to) arg2=$2 # unclear???? -user_dir=eliza_bot/$1 +user_dir=modules/talk/logs/$1 if [ ! -d "$user_dir" ]; then mkdir $user_dir fi @@ -14,9 +14,9 @@ if [ -f "$user_dir/GOODBYE" ]; then rm $user_dir/GOODBYE fi -shift 2 # chop off the first two args +shift 3 # chop off the first two args echo "$@" >> $user_dir/input -cat $user_dir/input | java -jar eliza_bot/eliza_java.jar > $user_dir/output +cat $user_dir/input | java -jar modules/talk/talk_bot.jar > $user_dir/output # retcode of value 1 means the user said goodbye retcode="${PIPESTATUS[1]}" @@ -31,4 +31,4 @@ if [ $retcode -eq "1" ]; then mv $user_dir/output $user_dir/"output_$stamp" # leave good-bye flag (indicating the user already said goodbye) touch $user_dir/GOODBYE -fi \ No newline at end of file +fi diff --git a/modules/talk/Vy/input b/modules/talk/Vy/input new file mode 100644 index 0000000..c1514ab --- /dev/null +++ b/modules/talk/Vy/input @@ -0,0 +1,2 @@ +talk test +talk bye diff --git a/modules/talk/Vy/output b/modules/talk/Vy/output new file mode 100644 index 0000000..37cb974 --- /dev/null +++ b/modules/talk/Vy/output @@ -0,0 +1,3 @@ +Hello, how's it going? Please tell me your problem. +I'm not sure I understand you fully. +Please go on. diff --git a/modules/talk/mlee/input b/modules/talk/mlee/input new file mode 100644 index 0000000..b85a01e --- /dev/null +++ b/modules/talk/mlee/input @@ -0,0 +1,5 @@ +so can you do math? +yes but can you? +you seem to have talked me into a corner +i think... you seem... errrrr +indeed diff --git a/modules/talk/mlee/output b/modules/talk/mlee/output new file mode 100644 index 0000000..2eebe98 --- /dev/null +++ b/modules/talk/mlee/output @@ -0,0 +1,6 @@ +Hello, how's it going? Please tell me your problem. +You believe I can do math don't you ? +You seem to be quite positive. +Why do you think I seem to have talked you ? +You say you think ? +I'm not sure I understand you fully. diff --git a/modules/talk/plant/input b/modules/talk/plant/input new file mode 100644 index 0000000..ef66fcc --- /dev/null +++ b/modules/talk/plant/input @@ -0,0 +1,4 @@ +WWWWWWWAAAAAAAZZZZZZZAAAAAAA +I'm not sure you fully understand me +how did you know? +Why wouldn't I ask diff --git a/modules/talk/plant/output b/modules/talk/plant/output new file mode 100644 index 0000000..a103e0f --- /dev/null +++ b/modules/talk/plant/output @@ -0,0 +1,5 @@ +Hello, how's it going? Please tell me your problem. +I'm not sure I understand you fully. +Is it because you are not sure I fully understand you that you came to me ? +Why do you ask ? +Does that question interest you ? diff --git a/modules/talk/talk_bot.jar b/modules/talk/talk_bot.jar new file mode 100644 index 0000000..12e89c3 Binary files /dev/null and b/modules/talk/talk_bot.jar differ diff --git a/modules/talk/tedmeyer/input b/modules/talk/tedmeyer/input new file mode 100644 index 0000000..223142d --- /dev/null +++ b/modules/talk/tedmeyer/input @@ -0,0 +1,6 @@ +talk you are an evil sentient computer +talk yes, especially sentient ones +no, YOURE possitive +you're going to make me cry +abcdefg +what is the square root of two? diff --git a/modules/talk/tedmeyer/output b/modules/talk/tedmeyer/output new file mode 100644 index 0000000..cb528aa --- /dev/null +++ b/modules/talk/tedmeyer/output @@ -0,0 +1,7 @@ +Hello, how's it going? Please tell me your problem. +Do computers worry you? +You seem to be quite positive. +Are you saying no just to be negative? +What makes you think I am going to make you cry ? +I'm not sure I understand you fully. +Why do you ask ?