A personalized Python CLI application that generates mood-based motivational quotes with randomization and user engagement.
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
- Python 3.7 یا اس سے اوپر
- کوئی بھی terminal/command prompt
- Repository clone کریں:
git clone https://github.com/qaisaraiengineer/-Daily-Motivation-Generator.git
cd daily-motivation-generator- File بنائیں اور code paste کریں:
# motiv_generator.py یا motivation_generator.py
python motivation_generator.pypython motivation_generator.py- اپنا نام enter کریں
- اپنے mood کو select کریں (1-4):
1→ Happy 😄2→ Sad 😢3→ Tired 😴4→ Unmotivated 😔
- Personalized motivational quote ملے گا
- دوبارہ quote چاہئے؟
yes/notype کریں
🌞 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! 🚀
daily-motivation-generator/
│
├── motivation_generator.py # Main application file
├── README.md # Project documentation (یہ فائل)
└── LICENSE # Project license
یہ 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 |
ہر mood کے لیے 5 unique quotes موجود ہیں:
- Happy: 5 quotes
- Sad: 5 quotes
- Tired: 5 quotes
- Unmotivated: 5 quotes
random.choice() استعمال کرتے ہوئے ہر بار نیا quote select ہوتا ہے۔
User کا نام پوری application میں استعمال ہوتا ہے۔
while loop سے بہتر memory management ملتی ہے۔
"1": {
"mood": "Happy",
"emoji": "😄",
"quotes": [
"Your existing quotes...",
"Your new quote here! 🎉" # نیا quote شامل کریں
]
}quotes_data = {
"1": { ... },
"5": { # نیا mood
"mood": "Confident",
"emoji": "💪",
"quotes": ["..."]
}
}Solution: یقینی بنائیں کہ tabs اور spaces mixed نہ ہوں۔ پوری file میں spaces ہی استعمال کریں۔
Solution: random Python built-in module ہے — کوئی extra installation نہیں چاہیے۔
Solution: Program خود سے "Friend" نام لے لیتا ہے۔
- Database سے quotes load کریں
- User history track کریں
- Daily reminders feature
- GUI version (Tkinter/PyQt)
- Multi-language support (Urdu/English)
- Quote severity levels
- Time-based personalization
یہ project MIT License کے تحت ہے — آزادی سے استعمال، modify اور distribute کریں۔
Contributions خوش آئند ہیں! اگر بہتری کی تجویز ہے:
- Fork کریں
- Feature branch بنائیں (
git checkout -b feature/AmazingFeature) - Changes commit کریں (
git commit -m 'Add AmazingFeature') - Branch push کریں (
git push origin feature/AmazingFeature) - Pull Request کھولیں
Your Name — Qaisar Rafique
📧 Email: qaisar.ai.engineer@gmail.com
🔗 GitHub: (https://github.com/qaisaraiengineer/-Daily-Motivation-Generator)
- Python Community
- Open Source Contributors
- تمام motivational quotes کے لیے شکریہ
اگر کوئی مسئلہ ہو تو:
- GitHub Issues میں report کریں
- Email: qaisar.ai.engineer@gmail.com
- Discussion شروع کریں
Happy Coding! 🚀✨