From 1b4d0190e041209f5f0dd5ffe296f0cedf1812c6 Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Wed, 9 Nov 2016 22:30:58 -0600 Subject: [PATCH] Fixes --- chatbot-support.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatbot-support.bash b/chatbot-support.bash index c1edfe7..c14f9fb 100644 --- a/chatbot-support.bash +++ b/chatbot-support.bash @@ -1,3 +1,3 @@ #!/bin/bash url="$(wget -q -O - http://alice.pandorabots.com/ | grep iframe | cut -f 2 -d \")" -curl -s --data "input=$(echo $1 | sed "s/$2//g" | sed 's/^: //')" "$url" | grep 'ALICE:' | tail -n 1 | cut -f 3 -d '>' | sed 's/ ALICE: //' | sed "s/ALICE/$2/g" | sed "s/Alice/$2/g" | sed "s/ om/ friend/" +curl -m 30 -s --data "input=$(echo $1 | sed "s/$2//g" | sed 's/^: //')" "$url" | grep 'ALICE:' | tail -n 1 | cut -f 3 -d '>' | sed 's/ ALICE: //' | sed "s/ALICE/$2/g" | sed "s/Alice/$2/g" | sed "s/ om/ friend/" | sed "s/ \+/ /g"