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.
- Clone the repo
- Install the dependencies using
npm install
- Create a file named
.env
and add the environment variables as shown in.env.example
- Run the bot using
npm start
- Scan the QR code using your phone
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.