Why Laughter Really Is The Best Medicine For Your Mental Health Right Now

Belly-aching chortles; reflex guffaws; contagious giggles. It sure does feel good to hear a peal of laughter. A heart-warmingly infectious element of the human condition, laughter is widely know to…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Build a RSS Slack bot using Node.js

A RSS feed consolidates information sources in one place and provides updates when a site adds new content. Some popular websites provides an RSS feed which you can access to get updates quickly and conveniently.

Slack is a commonly used communication tool, besides being a communication tool, Slack also allows users to build their own bots and apps to enhance internal communication and automate all kinds of marvelous or mundane tasks.

Building a Slackbot can be easy and fun, and here I will share how to set up your own Slack bot with a simple RSS feed functionality.

Otherwise, if your channel does not allow third party apps, or you simply want to build your own app, this tutorial will demonstrate the steps for doing so.

Let’s see how the app work. We will start with building a simple app which responds to a slash command by displaying the latest RSS from a single feed. Then we’ll move on to adding some customizations and functionalities.

You can choose any of your preferred RSS feed.

Interacting with the Slack bot
Displaying the RSS feed from CNBC Top News

Behind the scenes, when the command /rss is keyed into slack, Slack will send a HTTP Post request to our slack bot server (in this case a node.js server). The server will then fetch the latest RSS feed from the subscription link and respond to the HTTP Post request with the required information.

Create a new directory and run npm init in the directory to create a new node project.

Add a comment

Related posts:

Urban Go usability optimization

UrbanGo is a fictional mobile app proposing to solve urban mobility problems by offering users the fastest and cheapest public and private transport routes. However, there is one point for many…

Oregon Poised to Build on Clean Energy Success in 2019

As the renewable energy revolution spreads across the country, an opportunity is at-hand for Oregon to become a leader in the transition and reap the economic benefits that come with it. E2’s…

Testing

ok so i just want to try if i can see my post using my ot. “Testing” is published by Romeo Ignacio.