simple chatbot in C