├── README.md ├── Schema.md └── Simplesay.md /README.md: -------------------------------------------------------------------------------- 1 | # Schema -------------------------------------------------------------------------------- /Schema.md: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "type": "object", 4 | "properties": { 5 | "greeting": { 6 | "type": "string", 7 | "example": "Hello, World!" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Simplesay.md: -------------------------------------------------------------------------------- 1 | import random 2 | 3 | responses = { 4 | "hello": "Hi there! How can I help you?", 5 | "how are you": "I'm just a bot, but I'm doing fine!", 6 | "bye": "Goodbye! Have a great day!", 7 | "default": "I'm not sure I understand that." 8 | } 9 | 10 | def chatbot(): 11 | while True: 12 | user_input = input("You: ").lower() 13 | if user_input == "exit": 14 | print("Bot: Goodbye!") 15 | break 16 | print("Bot:", responses.get(user_input, responses["default"])) 17 | 18 | chatbot() 19 | --------------------------------------------------------------------------------