Skip to content

Latest commit

 

History

History
executable file
·
31 lines (22 loc) · 1.54 KB

README.md

File metadata and controls

executable file
·
31 lines (22 loc) · 1.54 KB

crous-menu-watcher

axios cheerio node-cron simple-discord-webhooks

GitHub stars

A bot that monitors Crous menu and sends it to a Discord webhook

Installation

  • 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 OR npm start.

Copyright

See the license