From 79bd2194539aa559078de9afb1500a2e754ee501 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 13 Jul 2014 19:54:47 -0400 Subject: Added server --- chatbot.c | 66 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 32 insertions(+), 34 deletions(-) (limited to 'chatbot.c') diff --git a/chatbot.c b/chatbot.c index b2909f5..27bbdca 100644 --- a/chatbot.c +++ b/chatbot.c @@ -14,24 +14,23 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - * + * * Contact the author at contact@fwei.tk */ #include "gtnw.h" #include "strings.h" #include "util.h" -#include +#include #include #include #include - void do_chatbot(void) { - int stage=0; /* stage 0: i'm fine how are you... -> - stage 1: people sometimes make mistakes -> - stage 2: love to. how about global thermonuclear war? -> - stage 3: no lets play global thermonuclear war -> + int stage=0; /* stage 0: i'm fine how are you... -> + stage 1: people sometimes make mistakes -> + stage 2: love to. how about global thermonuclear war? -> + stage 3: no lets play global thermonuclear war -> stage 4: GLOBAL THERMONUCLEAR WAR!!! */ while(1) { @@ -61,7 +60,7 @@ void do_chatbot(void) valid=true; } } - break; + break; case 1: for(int i=0;i