add module to talk
This commit is contained in:
parent
b0a924da27
commit
8bfd6cd6d3
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
modules/talk/logs
|
@ -3,7 +3,7 @@
|
|||||||
arg1=$1 # sender (the person I am talking to)
|
arg1=$1 # sender (the person I am talking to)
|
||||||
arg2=$2 # unclear????
|
arg2=$2 # unclear????
|
||||||
|
|
||||||
user_dir=eliza_bot/$1
|
user_dir=modules/talk/logs/$1
|
||||||
if [ ! -d "$user_dir" ]; then
|
if [ ! -d "$user_dir" ]; then
|
||||||
mkdir $user_dir
|
mkdir $user_dir
|
||||||
fi
|
fi
|
||||||
@ -14,9 +14,9 @@ if [ -f "$user_dir/GOODBYE" ]; then
|
|||||||
rm $user_dir/GOODBYE
|
rm $user_dir/GOODBYE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
shift 2 # chop off the first two args
|
shift 3 # chop off the first two args
|
||||||
echo "$@" >> $user_dir/input
|
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 of value 1 means the user said goodbye
|
||||||
retcode="${PIPESTATUS[1]}"
|
retcode="${PIPESTATUS[1]}"
|
||||||
|
2
modules/talk/Vy/input
Normal file
2
modules/talk/Vy/input
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
talk test
|
||||||
|
talk bye
|
3
modules/talk/Vy/output
Normal file
3
modules/talk/Vy/output
Normal file
@ -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.
|
5
modules/talk/mlee/input
Normal file
5
modules/talk/mlee/input
Normal file
@ -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
|
6
modules/talk/mlee/output
Normal file
6
modules/talk/mlee/output
Normal file
@ -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.
|
4
modules/talk/plant/input
Normal file
4
modules/talk/plant/input
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
WWWWWWWAAAAAAAZZZZZZZAAAAAAA
|
||||||
|
I'm not sure you fully understand me
|
||||||
|
how did you know?
|
||||||
|
Why wouldn't I ask
|
5
modules/talk/plant/output
Normal file
5
modules/talk/plant/output
Normal file
@ -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 ?
|
BIN
modules/talk/talk_bot.jar
Normal file
BIN
modules/talk/talk_bot.jar
Normal file
Binary file not shown.
6
modules/talk/tedmeyer/input
Normal file
6
modules/talk/tedmeyer/input
Normal file
@ -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?
|
7
modules/talk/tedmeyer/output
Normal file
7
modules/talk/tedmeyer/output
Normal file
@ -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 ?
|
Loading…
x
Reference in New Issue
Block a user