How mahidharmannam05/code_alpha_basic_chatbot works
This is a minimal command-line chatbot. The user enters a line; the main loop uppercases it and calls Wish, which prints a fixed response for recognized phrases and a fallback for anything else. Returning bye after the BYE response stops the loop. The single source file implements both the interaction loop and response logic.
Main entry points: Basic_chatbot.py Response Logic
Components 4
Other components
- User
- Input Loop
Basic_chatbot.py - Response Logic
Basic_chatbot.py - Terminal Output
Connections 4
- User → Input Loop: enters text
Basic_chatbot.py - Input Loop → Response Logic: calls with input
Basic_chatbot.py - Response Logic → Terminal Output: prints reply
Basic_chatbot.py - Response Logic → Input Loop: returns bye
Basic_chatbot.py