Servidor que inicia bots Discord reais via POST do site KeyBot.
- O frontend (Lovable) envia POST para /start-bot com token do usuário.
- O Render inicia um bot separado por userId.
- O bot fica online até o tempo expirar (durationMinutes).
- Logs reais no Render.
- Conecte esse repo no Render
- Build Command: yarn install ou npm install
- Start Command: npm start
- Environment Variables: não precisa (token vem via POST)
POST https://keybotv1.onrender.com/start-bot
Body: { "token": "token-do-usuario", "userId": "user123", "durationMinutes": 5 }