From 314aa1044b78ad58e0a9e53b38c91de8714b5922 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 22 Jun 2014 16:47:24 -0400 Subject: Added map, improved logon garbage --- chatbot.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 chatbot.c (limited to 'chatbot.c') diff --git a/chatbot.c b/chatbot.c new file mode 100644 index 0000000..89e5cc5 --- /dev/null +++ b/chatbot.c @@ -0,0 +1,17 @@ +#include +#include +#include +void do_chatbot(void) +{ + while(1) + { + char buf[513]; + int ret=getnstr(buf, 512); + if(ret==ERR) + { + print_string("\n\n"); + print_string(cantUnderstand_respond[sizeof(cantUnderstand_respond)/sizeof(const char*)]); + print_string("\n\n"); + } + } +} -- cgit v1.1