News Bot is a Slack app that automatically sends a Slack message containing links to the top news headlines for the day according to CNN. The message is sent out every morning at 9 am to the workspace's General channel. This is achieved by setting up a Cron Job that ensures data is fetched from CNN's API, parsed accordingly, and sent to Slack every 24 hours.
- Node.js
- Slack API
Folder Structure:
├── controllers
├── message_controller # Parses API response and creates message object
├── services
├── request_controller # Fetches data from CNN API
├── app.js # App entry point
├── main.js # Main function call
├── package.json
└── README.md
The application is hosted on Heroku. There is no front-end portion to this application, however this ensures the Cron Job is running and the application will fetch and send data periodically.
Saurav Saha, Ahmed Abdelmoneim, Seif Ghazi