A simple chatbot project initially built for console interactions, later upgraded into a web-based chatbot interface using the Flask framework along with HTML, CSS, and JavaScript. The chatbot can generate strong passwords, provide current dates, respond to greetings, and offer help instructions.
main.py
: Main Flask server file.templates/
: Contains all HTML templates.static/
: Contains all CSS and JavaScript files.greetings.txt
,about.txt
: Bot predefined responses.bot_messages.log
,not_recognized.log
: Log files for recorded messages and unrecognized inputs.
- Python 3
- Flask
- HTML5
- CSS3
- JavaScript (Vanilla)
- Make sure you have Python 3 installed.
- Install Flask if not already installed:
pip install flask
- Run the server:
python main.py
- Open your browser and visit:
http://localhost:9000/
- Send and receive messages in a dynamic web chatbox.
- Generate secure, random passwords.
- Log all unknown messages.
- Interactive and stylish frontend.
This project is open-source for learning and personal development purposes.
مشروع بسيط لبوت محادثة تم تطويره أولاً للعمل عبر الكونسول، ثم تحويله إلى واجهة ويب تفاعلية باستخدام إطار العمل Flask، بالإضافة إلى استخدام HTML، CSS، و JavaScript. البوت يستطيع توليد كلمات مرور قوية، توفير التاريخ الحالي، الرد على التحيات، وتقديم تعليمات المساعدة.
main.py
: ملف السيرفر الرئيسي بلغة بايثون.templates/
: مجلد يحتوي على قوالب HTML.static/
: مجلد ملفات CSS و JavaScript.greetings.txt
,about.txt
: ردود البوت المعرفة مسبقًا.bot_messages.log
,not_recognized.log
: ملفات تسجيل الرسائل المدخلة والأوامر غير المعروفة.
- بايثون 3
- فلاسـك
- HTML5
- CSS3
- JavaScript (Vanilla)
- تأكد من تثبيت Python 3 لديك.
- إذا لم تكن مكتبة Flask مثبتة:
pip install flask
- شغّل الخادم:
python main.py
- افتح المتصفح وزر الرابط:
http://localhost:9000/
- إرسال واستقبال الرسائل في صندوق محادثة ديناميكي.
- توليد كلمات مرور قوية وعشوائية.
- تسجيل جميع الرسائل غير المعروفة.
- واجهة تفاعلية وجذابة.
هذا المشروع مفتوح المصدر لأغراض التعلم والتطوير الشخصي.
© 2025 [mmmmmtttttt] - All rights reserved