- Operating System: Linux, macOS, or Windows
- Python: 3.8 or higher
- RAM: Minimum 512 MB
- Disk Space: 100 MB minimum
- Internet: Required for API access
sudo apt update
sudo apt install python3 python3-pip python3-venvbrew install python3Download and install from python.org
git clone https://github.com/NickScherbakov/robot.git
cd robotpython3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatepip install -r requirements.txtcp .env.example .envEdit .env with your favorite text editor and add your credentials:
nano .env # or vim, code, etc.Minimum required configuration:
TELEGRAM_BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz
TELEGRAM_OWNER_ID=123456789- Open Telegram
- Search for @BotFather
- Send
/newbot - Follow instructions
- Copy the token to
.env
- Search for @userinfobot on Telegram
- Send
/start - Copy your ID to
.env
- Go to platform.openai.com
- Sign up or log in
- Go to API Keys section
- Create new secret key
- Copy to
.env
- Go to mistral.ai
- Sign up
- Get API key
- Copy to
.env
- Go to stripe.com
- Create account
- Go to Developers → API Keys
- Copy keys to
.env
The database is created automatically on first run, but you can test it:
python -c "from backend.database import Database; Database('data/robot.db').initialize(); print('Database OK')"python -c "from backend.config import Config; Config.validate(); print('Configuration OK')"python main.pyYou should see:
╔═══════════════════════════════════════╗
║ 🤖 EARNING ROBOT STARTING 🤖 ║
╚═══════════════════════════════════════╝
- Open Telegram
- Search for your bot (use the name you gave BotFather)
- Send
/start - Try
/ask What is AI?
pip install -r requirements.txt --upgradechmod +x main.pyChange the port in .env:
PORT=5001rm -rf data/
# Database will be recreated on next run- Create service file:
sudo nano /etc/systemd/system/earning-robot.service- Add content:
[Unit]
Description=Earning Robot
After=network.target
[Service]
Type=simple
User=youruser
WorkingDirectory=/path/to/robot
Environment="PATH=/path/to/robot/venv/bin"
ExecStart=/path/to/robot/venv/bin/python /path/to/robot/main.py
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target- Enable and start:
sudo systemctl daemon-reload
sudo systemctl enable earning-robot
sudo systemctl start earning-robot
sudo systemctl status earning-robotCreate Dockerfile:
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "main.py"]Build and run:
docker build -t earning-robot .
docker run -d --env-file .env --name robot earning-robot- Read the README.md for usage instructions
- Check API_DOCUMENTATION.md for API details
- Review DEPLOYMENT.md for production deployment
If you encounter issues:
- Check the logs
- Verify your API keys
- Review Troubleshooting section
- Open an issue on GitHub