Aurion is an ERP (Enterprise Resource Planning) developed by Auriga and used by the students of ENSIIE (École Nationale Supérieure d'Informatique pour l'Industrie et l'Entreprise). It allows them to access their schedules, notes and other important information.
The project aims to notify users when a new note is available on Aurion-Web. To do so, it uses Puppeteer to simulate a user's action and DiscordJS to publish an announcement in a Discord channel.
- NodeJS : https://nodejs.org/
-
Clone the repo
git clone https://github.com/maxime-desmarchelier/Validatos.git
-
Install NPM packages
npm install
-
Enter your credentials in
config.js
{"credentials": { "user": "AurionWebUser", "password": "AurionWebPassword" } }
or use environment variables
AURION_USER=AurionWebUser AURION_PASSWORD=AurionWebPassword
-
Enter Discord information in
config.js
You will have to set up a Discord bot and get its token. Tutorial here.
You can find the channel ID by enabling developer mode in Discord and right-clicking on the channel you want to use
{ "discord": { "token": "DISCORD_TOKEN", "logChannelId": "DISCORD_BOT_CHANNEL_ID", "announcementChannelId": "DISCORD_BOT_ANNOUNCEMENT_CHANNEL_ID" } }
-
(Optional) Enter Extra information in
config.js
You may want to change the default refresh rate (in minutes)
{ "extra": { "refreshRate": 60 } }
You may want to use healthchecks.io API
{ "extra": { "healthCheckUuid": "UUID", "healthCheckApiKey": "API_KEY" } }