The original repo run the script with a graphic interface.
But to run it on a Linux Command Line Interface, the original repo doesn't work.
BUT NOW IT'S FIXED !!
Config.json just need your webhook link
Cookie.json, need your cookies on the "admission.42.fr" website
Status :
Working ✅
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