#!/usr/bin/env python3
import http.server
import socketserver
import os
import sys

PORT = 8085

# Serve the current directory
Handler = http.server.SimpleHTTPRequestHandler
Handler.directory = os.path.dirname(os.path.abspath(__file__))

with socketserver.TCPServer(('', PORT), Handler) as httpd:
    print(f"Server running on port {PORT}")
    print(f"Access the web chat at: http://localhost:{PORT}")
    try:
        httpd.serve_forever()
    except KeyboardInterrupt:
        print("\nServer stopped.")