Skip to content

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

License

Notifications You must be signed in to change notification settings

LockBlock-dev/crous-menu-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks