Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

🌟 Daily Motivation Generator

A personalized Python CLI application that generates mood-based motivational quotes with randomization and user engagement.


📋 Project Overview

Daily Motivation Generator ایک interactive command-line application ہے جو صارف کے موڈ کو track کرتے ہوئے customized motivational messages فراہم کرتا ہے۔ ہر بار نیا quote ملتا ہے، اور پروگرام users کو emotionally connected رکھتا ہے۔

Main Features:

  • 🎯 User-friendly mood selection (4 options)
  • 🎲 Random quote generation (uniqueness ہر بار)
  • 👤 Personalized messages (name-based)
  • 🔁 Repeat functionality with efficient loops
  • 💎 Professional UI/UX with emojis
  • 📊 Scalable quote database

🚀 Getting Started

Prerequisites

  • Python 3.7 یا اس سے اوپر
  • کوئی بھی terminal/command prompt

Installation

  1. Repository clone کریں:
git clone https://github.com/qaisaraiengineer/-Daily-Motivation-Generator.git
cd daily-motivation-generator
  1. File بنائیں اور code paste کریں:
# motiv_generator.py یا motivation_generator.py
python motivation_generator.py

💻 Usage Guide

Basic Usage

python motivation_generator.py

Step-by-Step:

  1. اپنا نام enter کریں
  2. اپنے mood کو select کریں (1-4):
    • 1 → Happy 😄
    • 2 → Sad 😢
    • 3 → Tired 😴
    • 4 → Unmotivated 😔
  3. Personalized motivational quote ملے گا
  4. دوبارہ quote چاہئے؟ yes/no type کریں

Example Output:

🌞 Welcome to Daily Motivation Generator 🌞
==================================================
What's your name? Ali
Hi Ali! Let's lift your mood today 💪

How are you feeling today?
1️⃣  Happy 😄
2️⃣  Sad 😢
3️⃣  Tired 😴
4️⃣  Unmotivated 😔

Enter your mood (1-4): 1

==================================================
✨ Your Daily Motivation (Happy 😄) ✨
==================================================

Ali, Keep shining, your energy lights up the world! ✨

💚 Keep pushing forward — small steps create big changes!
==================================================

Would you like another quote? (yes/no): no

👋 Have an amazing day, Ali! You've got this! 🚀

🧬 Project Structure

daily-motivation-generator/
│
├── motivation_generator.py    # Main application file
├── README.md                  # Project documentation (یہ فائل)
└── LICENSE                    # Project license

🎓 Python Concepts Used

یہ project میں سیکھنے والے concepts:

Concept Usage Code Example
Functions Code organization def get_motivation():
Input/Output User interaction input(), print()
Conditional Logic Decision making if-elif-else, in
Data Structures Data storage dictionary, list
Loops Repetition while True, break
Random Module Randomization random.choice()
String Methods Text processing .strip(), .lower()
String Formatting Dynamic output f-strings

🎨 Features in Detail

1. Mood-Based Quotes

ہر mood کے لیے 5 unique quotes موجود ہیں:

  • Happy: 5 quotes
  • Sad: 5 quotes
  • Tired: 5 quotes
  • Unmotivated: 5 quotes

2. Random Selection

random.choice() استعمال کرتے ہوئے ہر بار نیا quote select ہوتا ہے۔

3. Personalization

User کا نام پوری application میں استعمال ہوتا ہے۔

4. Loop Optimization

while loop سے بہتر memory management ملتی ہے۔


🔧 Customization

Quotes شامل کریں:

"1": {
    "mood": "Happy",
    "emoji": "😄",
    "quotes": [
        "Your existing quotes...",
        "Your new quote here! 🎉"  # نیا quote شامل کریں
    ]
}

Mood شامل کریں:

quotes_data = {
    "1": { ... },
    "5": {  # نیا mood
        "mood": "Confident",
        "emoji": "💪",
        "quotes": ["..."]
    }
}

🐛 Troubleshooting

Problem: IndentationError

Solution: یقینی بنائیں کہ tabs اور spaces mixed نہ ہوں۔ پوری file میں spaces ہی استعمال کریں۔

Problem: ModuleNotFoundError

Solution: random Python built-in module ہے — کوئی extra installation نہیں چاہیے۔

Problem: Empty name input

Solution: Program خود سے "Friend" نام لے لیتا ہے۔


📈 Future Enhancements

  • Database سے quotes load کریں
  • User history track کریں
  • Daily reminders feature
  • GUI version (Tkinter/PyQt)
  • Multi-language support (Urdu/English)
  • Quote severity levels
  • Time-based personalization

📄 License

یہ project MIT License کے تحت ہے — آزادی سے استعمال، modify اور distribute کریں۔


🤝 Contributing

Contributions خوش آئند ہیں! اگر بہتری کی تجویز ہے:

  1. Fork کریں
  2. Feature branch بنائیں (git checkout -b feature/AmazingFeature)
  3. Changes commit کریں (git commit -m 'Add AmazingFeature')
  4. Branch push کریں (git push origin feature/AmazingFeature)
  5. Pull Request کھولیں

👨‍💻 Author

Your Name — Qaisar Rafique 📧 Email: qaisar.ai.engineer@gmail.com
🔗 GitHub: (https://github.com/qaisaraiengineer/-Daily-Motivation-Generator)


🙏 Acknowledgments

  • Python Community
  • Open Source Contributors
  • تمام motivational quotes کے لیے شکریہ

📞 Support

اگر کوئی مسئلہ ہو تو:


Happy Coding! 🚀✨

About

A simple Python program that asks your name, mood, and shows a personalized motivational message.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors