Skip to content

shyybi/42-check-in-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 Check-in-CLI

Why forking the original repo ?

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 !!

Auth Setting :

Config.json just need your webhook link
Cookie.json, need your cookies on the "admission.42.fr" website

Status :
Working ✅

🤔 How does it work?

⚠️ THIS BOT ONLY WORKS ON PARIS CHECKIN AT THE MOMENT ⚠️

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!

🔔 How to use it

🗺️ Requirements :

  • 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

⚙️ Setup the bot :

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 the script.sh by adding the path to the src after the cd 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

Hits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published