A bot that monitors Crous menu and sends it to a Discord webhook
- Install NodeJS.
- Download or clone the project.
- Run
npm install
. - Edit the config.json:
{
"discordWebhookURL": "https://discord.com/api/webhooks/XXXXXXXXXXX", // the Discord webhook URL
"cronDelay": "0 10 */1 * *", // cronjob, default is each day at 10:00
"ownerId": "DISCORD_ID", // your Discord ID (to ping you)
"endpoint": "https://www.example.com/getMenu.php", // menu endpoint
"crousId": "rXXX", // the CROUS you want to track
"crousList": {} // some CROUS IDs
}
- Run
node index.js
ORnpm start
.
See the license