A predefined chatbot that responds to user input in fun and informative ways! Chat naturally and get jokes, facts, motivation, and more!
- 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
- Python 3.6+
- No external libraries needed (uses only standard library)
No installation needed! Just run the script:
python main.pySimply start the program and type naturally! The bot understands various 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"
🤖 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! 🌟
Learn interesting trivia about:
- Animals
- Space
- Food
- Nature
- Science
Enjoy clean, family-friendly humor with various topics.
Get inspired with positive affirmations and encouragement.
The bot understands multiple ways of asking the same question:
- "what time" = "current time" = "time now"
- "tell me a joke" = "make me laugh" = "joke"
The bot remembers your name throughout the conversation!
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']
}
}- 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
Potential additions:
- More conversation topics
- Context awareness
- Learning from conversations
- Integration with APIs for real-time data
- Sentiment analysis
- Multi-language support
Feel free to add more jokes, facts, or conversation patterns!
This project is open source and available for educational purposes.
Have fun chatting! 🤖💬