Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

🤖 Fun & Informative Chatbot

A predefined chatbot that responds to user input in fun and informative ways! Chat naturally and get jokes, facts, motivation, and more!

🌟 Features

  • Natural Conversation - Chat like you would with a friend
  • Personality - Fun and friendly responses with emojis
  • Multiple Response Types:
    • Greetings and farewells
    • Time and date information
    • Fun facts about the world
    • Jokes to make you laugh
    • Motivational messages
    • Help commands
  • Name Recognition - Tell the bot your name and it'll remember!
  • Pattern Matching - Recognizes various ways of asking the same thing
  • Random Responses - Keeps conversations fresh and interesting

📋 Requirements

  • Python 3.6+
  • No external libraries needed (uses only standard library)

🚀 Installation

No installation needed! Just run the script:

python main.py

💻 Usage

Simply start the program and type naturally! The bot understands various commands:

Available Commands

  • Greetings: "hello", "hi", "hey"
  • Get Bot Name: "what is your name", "who are you"
  • Introduce Yourself: "my name is [name]", "I'm [name]"
  • Check Status: "how are you"
  • Time & Date: "what time", "what date"
  • Fun Facts: "tell me a fact", "fun fact"
  • Jokes: "tell me a joke", "make me laugh"
  • Motivation: "motivate me", "inspire me"
  • Help: "help", "what can you do"
  • Exit: "bye", "goodbye", "quit"

📝 Example Conversation

🤖 Welcome to BuddyBot - Your Fun & Informative Chatbot!
======================================================================

Hi! I'm BuddyBot! Type 'help' to see what I can do.
Type 'bye' to exit.

You: hello
BuddyBot: Hello there! 👋 How can I brighten your day?

You: my name is Sarah
BuddyBot: Nice to meet you, Sarah! 😊 I'm BuddyBot!

You: tell me a joke
BuddyBot: Why don't scientists trust atoms? Because they make up everything! 😄

You: tell me a fact
BuddyBot: 🐙 Octopuses have three hearts!

You: motivate me
BuddyBot: 💪 You're capable of amazing things! Keep going!

You: what time
BuddyBot: ⏰ The current time is 02:30 PM

You: bye
BuddyBot: Goodbye! Have an amazing day! 🌟

🎯 Features Breakdown

1. Fun Facts

Learn interesting trivia about:

  • Animals
  • Space
  • Food
  • Nature
  • Science

2. Jokes

Enjoy clean, family-friendly humor with various topics.

3. Motivational Messages

Get inspired with positive affirmations and encouragement.

4. Smart Pattern Recognition

The bot understands multiple ways of asking the same question:

  • "what time" = "current time" = "time now"
  • "tell me a joke" = "make me laugh" = "joke"

5. Personalization

The bot remembers your name throughout the conversation!

🔧 Customization

You can easily add more content by editing the lists in the FunChatbot class:

# Add more facts
self.facts = [
    "Your new fact here!",
    # Add more...
]

# Add more jokes
self.jokes = [
    "Your joke here! 😄",
    # Add more...
]

# Add more patterns
self.patterns = {
    'your_category': {
        'patterns': ['keyword1', 'keyword2'],
        'responses': ['Response 1', 'Response 2']
    }
}

🎨 Features

  • Colorful Output - Uses emojis for visual appeal
  • Error Handling - Gracefully handles unexpected inputs
  • Exit Options - Multiple ways to exit (bye, quit, Ctrl+C)
  • Default Responses - Always has something to say
  • Clean Interface - Easy-to-read conversation format

🚀 Future Enhancements

Potential additions:

  • More conversation topics
  • Context awareness
  • Learning from conversations
  • Integration with APIs for real-time data
  • Sentiment analysis
  • Multi-language support

🤝 Contributing

Feel free to add more jokes, facts, or conversation patterns!

📄 License

This project is open source and available for educational purposes.


Have fun chatting! 🤖💬