Get a desktop notification every time a new correction slot is available for your 42 project.

Overview

42_slot_watcher

A simple node.js corrections slots watcher for 42, working on Windows - MacOS - Linux.

What is this

I was bored of having to refresh the page every 10 seconds to find for correction slots and hoping to be the first one to claim it. You probably know what I'm talking about if you are a 42 student... so I made this script to alert us when a new slot is available.
You will receive desktop notifications as soon as new slots has been detected.

Installation

  1. Clone the repository : git clone https://github.com/MaaxIT/42_slot_watcher
  2. Open the config.json file and your own values (see below for configuration steps)
  3. Run node . and here you go, you can take a rest!

Configuration

  1. Connect to the intra, press F12 to open your console, go the "Application" tab and scroll down to the "Cookies" category.

  2. Open your cookies from the 42 intra and copy the value of the cookie with the name _intra_42_session_production. Put in into the config file at session_production.

  3. Then, go to your project and go to the menu where you can see available corrections slots for your project. In the URL, you can see 2 important values :
    --> Use this link as an example: https://projects.intra.42.fr/projects/42cursus-push_swap/slots?team_id=4134397
    -->> 42cursus-push_swap is your project_id
    -->> 4134397 is your team_id

  4. You don't have to change other values.

{
    "session_production": "your_session_production",
    "project_id": "project_string_id",
    "team_id": "team_number_id",
    "cooldown": 30,
    "nextDaysLimit": 1
}
You might also like...

Get an isolated preview database for every Netlify Preview Deployment

Get an isolated preview database for every Netlify Preview Deployment

Netlify Preview Database Plugin Create an isolated preview database for each preview deployment in Netlify Quickstart • Website • Docs • Discord • Twi

Nov 16, 2022

⚡️ Lightning Time: a new way to measure time

Lightning Time ⚡️ Lightning Time ⚡️ is a new way to measure time. It's a spin on hexadecimal time: the day is split into 16 parts over and over. The f

Nov 22, 2022

A simple Node.js package that helps you not to look up JavaScript promise syntax every time you use it.

A simple Node.js package that helps you not to look up JavaScript promise syntax every time you use it.

A simple Node.js package that helps you not to look up JavaScript promise syntax every time you use it. Simple: Provides abstraction of the promise sy

Oct 8, 2022

A new generation GUI automation framework for Web and Desktop Application Testing and Automation.

A new generation GUI automation framework for Web and Desktop Application Testing and Automation.

Clicknium-docs Clicknium is a new generation GUI automation framework for all types of applications. It provides easy and smooth developer experience

Dec 19, 2022

Quickly get up and running with a powerful Solidity project in no time.

Solidity template Quickly get up and running with a powerful Solidity project in no time. ✨ Tech stack used Hardhat. Tooling for compiling, deploying

Jun 6, 2022

Quickly get up and running with a powerful Solidity project in no time.

Solidity template Quickly get up and running with a powerful Solidity project in no time. ✨ Tech stack used Hardhat. Tooling for compiling, deploying

Jun 6, 2022

This tool allows you to test your chains.json file to see if your chains are available, syncing, or in sync.

Chains Tester This tool allows you to test your chains.json file to see if your chains are available, syncing, or in sync. This is an open source tool

Nov 4, 2022

Send slack notification with BQ results

Send slack notification with BQ results

bq2slack-github-action Send slack notification with BQ results. How to use Sample github actions workflow yaml name: Run SQL against BQ and notify sla

Dec 16, 2022

Adds a notification to hydrate yourself!

Adds a notification to hydrate yourself!

Water Break This plugin simply puts a notification in the upper-left of the window. This will alert you to drink some water! Install ipm install water

Sep 24, 2022
Comments
  • prerequisites

    prerequisites

    Nice project,

    Would be great to have some note about dependencies. On the school's computers, node JS and axios is not installed by default. I had never heard about axios, and some ppl might just skip when errors about unknown files occur.

    opened by Tanguyfockedey 6
Owner
Maxime
Security-passionnated developer
Maxime
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
JOSE ZEPEDA 10 Nov 18, 2022
Desktop App for mdSilo: Tiny Knowledge silo on your desktop.

mdSilo A mind silo for storing ideas, thought, knowledge with a powerful writing tool. built with React and Tauri. Demo Discord This is desktop app, a

D.Loh 203 Dec 27, 2022
Notify users of your Next.js app when a new deploy is available.

Next.js Deploy Notifications This library lets your users know when you've deployed a new version of your Next.js application. import { hasNewDeploy }

Ryan Toronto 25 Jan 2, 2023
This provides an extension integration with Docker Desktop to run k9s quickly and easily through the Docker Desktop interface.

k9s extension for Docker Desktop This provides an extension integration with Docker Desktop to allow k9s quickly and easily through the Docker Desktop

James Spurin 14 Dec 16, 2022
Check your data which may be stolen every time you visit a site. ⚠️

df : Digital Fingerprint ?? Features Check your data which may be stolen every time you visit a site. ?? Geographical Data IP Address City Region Coun

Vishwa Gaurav 4 Oct 17, 2022
A map for 1337 Khouribga's new labs clusters. This tool will help 1337 students find available posts, and search for other students in the cluster by name or login.

1337KH Labs Clusters Map Hellow. This tool is made by 1337 Khouribga students for 1337 Khouribga students to help make their lives at the school easie

Oussama 18 Aug 8, 2022
Manage and monitorize your notification using only your terminal :3

Notifications Monitor Monitor your notifications and get a temporary list of the notifications. Dependencies Node.js (to run the program; by default,

Gabriel Guerra 3 Apr 12, 2022
A simple Node.js code to get unlimited instagram public pictures by every user without api, without credentials.

Instagram Without APIs Instagram Scraping in August 2022, no credentials required This is a Node.js library, are you looking for the same in PHP? go t

Francesco Orsi 28 Dec 29, 2022