- Linear regression graphing with random data, CSV files, or manual input
- Neural network training and visualization using TensorFlow
- Interactive Discord UI components
- File generation (graphs, model architectures)
The bot uses a hybrid approach:
- Discord Bot runs in the main thread
- Flask Web Server runs in a background thread
- Render pings the web server to keep the service alive
- Health checks ensure the bot stays online 24/7
- discord.py - Discord API wrapper
- tensorflow - Neural network training
- matplotlib - Graph generation
- pandas/numpy - Data processing
- flask - Web server for health checks
- scikit-learn - Machine learning utilities
- Automatic SSL certificate handling for macOS
- TensorFlow threading optimization to prevent mutex issues
- Reduced dataset sizes for free tier compatibility
- Optimized batch sizes for memory efficiency
- Background threading for web server
├── Discord Bot.py # Main bot file
├── keep_alive.py # Flask web server for health checks
├── requirements.txt # Python dependencies
├── render.yaml # Render deployment config
├── Procfile # Heroku deployment config
├── runtime.txt # Python version specification
├── Dockerfile # Docker deployment config
├── .env.example # Environment variables template
└── README.md # This file