Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.05 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.05 KB

CUFE Announcement Bot

This a simple bot that scraps CUFE - CHS's announcements page and sends the new announcements to a whatsapp group. It is written in node.js and uses [whatsapp-web.js] to send the messages.

Announcement's website Message sent to whatsapp group

How to use

  1. Clone the repo
  2. Install the dependencies using npm install
  3. Create a file named .env and add the environment variables as shown in .env.example
  4. Run the bot using npm start
  5. Scan the QR code using your phone

How it works

The bot scraps the announcements page every 5 minutes and stores the new announcements in a json file. If the bot is running, it will send the new announcements to the whatsapp group, then it will close.