Skip to content

KaranParmar19/CapchaBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoClassJoiner — LPU MyClass Auto Attendance Bot

Automatically login and join classes on myclass.lpu.in (CodeTantra). Runs 24/7 on Render — works even when your laptop is off.

Features

  • 🔐 Auto-login to myclass.lpu.in
  • 📅 Timetable scraping from CodeTantra dashboard
  • ✅ Auto-join when a class starts (green status detected)
  • ⏰ Cron scheduler (every 2 min, Mon–Sat, 8AM–9PM IST)
  • 📊 Web dashboard with real-time status & logs
  • 🔄 Self-ping to keep Render free tier alive

Deploy to Render

  1. Fork/clone this repo
  2. Go to render.comNew Web Service
  3. Connect your repo
  4. Set runtime to Docker
  5. Add environment variables:
    • REG_NUMBER = your registration number
    • PASSWORD = your UMS password
  6. Deploy 🚀

Ensuring 24/7 Stability (Render Free Tier)

Render's free tier spins down the server after 15 minutes of inactivity. To keep the bot active and prevent "Web server is down" errors:

  1. Create a free account on UptimeRobot.
  2. Add a new HTTP(s) Monitor.
  3. Set the URL to: https://your-service-name.onrender.com/ping
  4. Set the monitoring interval to 5 minutes.

This keeps the instance warm and ensures classes are joined exactly on time.

Local Testing

npm install
REG_NUMBER=12345678 PASSWORD=yourpass node server.js
# Dashboard → http://localhost:3000

MAKE SURE TO STAR MY REPO :)

Tech Stack

Node.js · Puppeteer · Express · node-cron · Docker

⚠️ Credentials are stored as environment variables on Render (encrypted at rest). They are never committed to code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors