Skip to content

A whatsapp bot that checks College Announcements and sends it to a group

Notifications You must be signed in to change notification settings

Khalidmamdou7/cufe-announce-bot

Repository files navigation

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.

About

A whatsapp bot that checks College Announcements and sends it to a group

Topics

Resources

Stars

Watchers

Forks