A web-based control panel for managing the SolverGenie Stack Exchange bot that automatically answers questions across various Stack Exchange sites.
- Web-based control panel
- Real-time bot status monitoring
- Live output display
- Easy site management
- Start/Stop controls
- Install dependencies:
pip install -r requirements.txt
- Configure environment variables in
.env
:
STACK_CLIENT_ID=your_client_id
STACK_CLIENT_SECRET=your_client_secret
STACK_KEY=your_api_key
STACK_ACCESS_TOKEN=your_access_token
OPENROUTER_API_KEY=your_openrouter_key
USER_AGENT="SolverGenie Bot/1.0.0 (https://solvergenie.site)"
BOT_USERNAME=your_stack_username
- Configure sites in
sites.txt
:
- Add one Stack Exchange site per line
- Default sites are focused on education (math, physics, etc.)
- Start the web interface:
python app.py
- Open your browser and go to:
http://localhost:5000
- Use the web interface to:
- Start/Stop the bot
- Monitor bot status
- View real-time output
- Manage target sites
To deploy on a server:
- Install dependencies
- Set up environment variables
- Run with gunicorn (recommended for production):
gunicorn -w 4 -b 0.0.0.0:5000 app:app
├── app.py # Flask web application
├── stackexchange_bot.py # Main bot script
├── templates/ # HTML templates
│ └── index.html # Web interface
├── sites.txt # Target Stack Exchange sites
├── .env # Environment variables
└── requirements.txt # Python dependencies
- The bot requires at least 10 reputation on each Stack Exchange site to post answers
- Recommended to build reputation organically before running the bot
- Respect Stack Exchange's rate limits and terms of service