Status :
Working ✅
First, this project aimed to help me join the 42 school. I decided to code this small project after missing check-ins multiple times. Please bear in mind this project was coded in a few hours after missing a check-in, so there might be some more optimized way to do it but I didn't want to waste a lot of time on it.
I tried to comment the code to help people comprehend the process of this small bot.
Do not use this project for malicious purposes.
The idea of this small bot is to automate the check-in process. To achieve that, the bot will try to login with the information you provided with Puppeteer using Chromium (I did this because I didn't want to waste time on the session cookie with requests). After successfully logging in the bot will retrieve the session cookie. After retrieving this cookie, the bot will check every X time if there is a new check-in available. If so the bot will send you a discord webhook (+ a nice sound), will open a Chromium window, and will login and try to sign in the check-in for you!
- NODE.JS - Install Node.js click here
- PACKAGES - With npm install all the packages (run
npm install
) help here - CHROMIUM - Check if you have the right version of Chromium (need to correspond to your Chrome version) help here
Head up to the src
file, and edit the config.json.
- discord_webhook: If you don't know what a webhook is, click here.
- email: the one of your account
- password: the one of your account
- retry_delay: corresponds to the delay in milliseconds (ms) that the bot will wait before refreshing while monitoring the check-ins.
- in
src\Bash Script
modify thescript.sh
by adding the path to thesrc
after thecd
command. You'll now be able to run the bot when starting your PC + execute it more easily.
💹 Now you're ready to start the bot with node main
💌 If you have any questions/feedback about this project feel free to DM me on discord: ibadus#0300
📨 Need help? Or don't know how to setup? contact me here: Click here to contact me