Building a realtime Twitter bot that uploads media as a reply to all tweets of a specific hashtag using Node.js.

Source Code:  https://github.com/pguduguntla/twitter-bot-reply-media

Twitter makes it really easy to build bots that can interact with tweets, users, and analytics tools that can scrape the platform for useful insights.

I wanted to develop a simple real time Twitter bot that actively filters through all tweets containing a certain hashtag and replies with videos/images directly to the tweet.

In this tutorial, I’ll go over how to set up and build a simple Twitter bot that searches for tweets with the hashtag #FilterMe . If that tweet contains some media, then our bot will reply with a video, and if it does not have any media attached, our bot will respond with a message like Oops, looks like you didn’t provide a media file! . So, let’s get started!

1. Creating a Twitter Developer Account

In order to access Twitter’s API, we need to first create a developer account. You will need to make a Twitter account (if you don’t already have one) which will be the account that makes the posts. If you don’t want your bot to be associated with your personal account,  create a new Twitter account under your bot’s name.

#bots #nodejs #twitter #realtime

Building a Real Time Twitter Bot that Replies with Media
1.50 GEEK