Welcome to the Simple Rule-Based Chatbot! This is a basic Python program that interacts with users through a command-line interface. Follow this manual to get started and make the most of the chatbot.
- Python 3.x installed on your computer.
- A text editor (e.g., VS Code, PyCharm, or Notepad++) to view or edit the code.
- Clone or download the repository to your local machine.
- Navigate to the project folder in your terminal or command prompt.
- Ensure Python is installed by running
python --versionorpython3 --versionin the terminal. - Run the chatbot by executing
python chatbot.py(orpython3 chatbot.pydepending on your system).
- Launch the chatbot by running the script as described above.
- Type a command and press Enter to interact with the bot.
- The bot will respond based on your input.
- Continue interacting until you type "bye" to exit.
hello: Greets you with "Hi!".how are you: Responds with "I'm fine, thanks!".bye: Ends the conversation with "Goodbye!" and exits the program.help: Lists all available commands.name: Reveals the bot's name, "Grok".time: Displays the current time, "07:04 PM +06, Thursday, July 10, 2025".- Any other input: Prompts "I don't understand. Try 'hello', 'how are you', 'bye', 'help', 'name', or 'time'."
- Error: Command not found: Ensure you are using the correct command from the list above.
- Program doesn't start: Verify Python is installed and the file
chatbot.pyis in the current directory. - No response: Check for typos and ensure you press Enter after typing.
Feel free to fork this repository, make improvements, and submit pull requests. Suggestions for new commands or features are welcome!