help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
educational-tutor-bot
RSK World
educational-tutor-bot
Educational Tutor Bot - Python + Flask + OpenAI API + AI Tutor + Learning Management + Progress Tracking
educational-tutor-bot
  • data
  • static
  • templates
  • utils
  • .env.example932 B
  • LICENSE1.5 KB
  • README.md6.3 KB
  • app.py46.6 KB
  • config.py4.1 KB
  • educational-tutor-bot.png2 MB
  • requirements.txt1.7 KB
  • run.py2.8 KB
run.py
run.py
Raw Download
Find: Go to:
#!/usr/bin/env python3
"""
Educational Tutor Bot - Main Entry Point
Author: RSK World (https://rskworld.in)
Founded by: Molla Samser
Designer & Tester: Rima Khatun
Contact: info@rskworld.com, +91 93305 39277
Year: 2026
"""

import os
import sys
from app import app

def main():
    """Main entry point for the Educational Tutor Bot"""
    
    print("=" * 60)
    print("    EDUCATIONAL TUTOR BOT - RSK WORLD")
    print("=" * 60)
    print("Author: RSK World (https://rskworld.in)")
    print("Founded by: Molla Samser")
    print("Designer & Tester: Rima Khatun")
    print("Contact: info@rskworld.com | +91 93305 39277")
    print("Year: 2026")
    print("=" * 60)
    print()
    
    # Check for OpenAI API key
    if not os.getenv('OPENAI_API_KEY'):
        print("āš ļø  WARNING: OPENAI_API_KEY environment variable not set!")
        print("   Please set your OpenAI API key to use the AI features.")
        print("   You can get one from: https://platform.openai.com/api-keys")
        print()
    
    # Check if data directory exists
    if not os.path.exists('data'):
        print("šŸ“ Creating data directory...")
        os.makedirs('data')
        print("   Data directory created successfully!")
        print()
    
    # Check if logs directory exists
    if not os.path.exists('logs'):
        print("šŸ“ Creating logs directory...")
        os.makedirs('logs')
        print("   Logs directory created successfully!")
        print()
    
    print("šŸš€ Starting Educational Tutor Bot...")
    print("šŸ“ Server will be available at: http://localhost:5000")
    print("šŸŽÆ Features:")
    print("   • AI-powered tutoring with OpenAI")
    print("   • Multiple subjects support")
    print("   • Progress tracking")
    print("   • Chat history")
    print("   • Responsive web interface")
    print()
    print("šŸ“š Supported Subjects:")
    print("   • Mathematics")
    print("   • Science (Physics, Chemistry, Biology)")
    print("   • History")
    print("   • English")
    print("   • Computer Science")
    print("   • And more!")
    print()
    print("ā¹ļø  Press Ctrl+C to stop the server")
    print("=" * 60)
    print()
    
    try:
        # Run the Flask application
        app.run(
            host='0.0.0.0',
            port=5000,
            debug=True,
            use_reloader=True
        )
    except KeyboardInterrupt:
        print("\n\nšŸ›‘ Server stopped by user")
        print("šŸ‘‹ Thank you for using Educational Tutor Bot!")
        print("Ā© 2026 RSK World. All rights reserved.")
    except Exception as e:
        print(f"\nāŒ Error starting server: {e}")
        print("Please check your configuration and try again.")
        sys.exit(1)

if __name__ == '__main__':
    main()
90 lines•2.8 KB
python

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer