aboutsummaryrefslogtreecommitdiff
path: root/chatbot.c
diff options
context:
space:
mode:
Diffstat (limited to 'chatbot.c')
-rw-r--r--chatbot.c17
1 files changed, 17 insertions, 0 deletions
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 <curses.h>
+#include <util.h>
+#include <strings.h>
+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");
+ }
+ }
+}