Skip to content

Latest commit

 

History

History
32 lines (14 loc) · 1018 Bytes

README.md

File metadata and controls

32 lines (14 loc) · 1018 Bytes

Gaps new grades notifier

Sends a Telegram notification when there is a new note on Gaps

Prerequisites

Install npm

Installation

After cloning the repo, you have to install the dependencies with npm -i.

Configuration

In the configuration file you have to enter several information:

  • Your AAI username and password
  • The id of the Telegram bot (there are many tutorials on the internet to create one)
  • The id of the conversation/group with the bot (You can find how to get it on the internet)
  • The Semester you want : All, S1 or S2. For All you need to enter "-1", for S1 you need to enter "0" and for S2 you need to enter "1".

Usage

Personally I made a shell script that contains this line /usr/bin/node /<path>/GapsGrades/get.js. Then I run it at different times of the day with crontab on linux, like this 0 8,11,14,17,20 * * * /<path>/script.sh. You can also run it manually with node get.js.