Skip to content

A small bot to monitor and sign in automatically for check ins for 42 Paris + 1337 Khouribga.

Notifications You must be signed in to change notification settings

ibadus/42-check-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 Check-in Bot

Status :
Working ✅

💬 Introduction

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.

🤔 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

A small bot to monitor and sign in automatically for check ins for 42 Paris + 1337 Khouribga.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published