title: Twitter bot to auto reply to specified hashtags
body: <p>I need help regarding a twitter bot which I am trying to make (which will reply to a particular phrase or hashtag) but something is wrong. I will appreciate if anyone can help solve it.</p>
  
  <pre><code>var Twit = require ('twit');
  
  var config = require('./config');
  var T = new Twit(config);
  
     for (var i = 0; i &lt; tweetList.length; i++) {
      var id = { id: tweetList[i].id_str }
      if ('retweeted_status' in tweetList[i]) 
          continue;
      }
      var message = "A lot confused, a lot does not understand feelings";
      var tweetId = tweetList[i].id_str
  
      try {
          T.post('statuses/update',
              { "status": message, "in_reply_to_status_id": tweetId },
              function (error, tweets, response) {
                  console.log("Tweet posted successfully!")
              });
      }
      catch (err) {
          console.log(err);
      }  
  });  
  </code></pre>
  
  <p>it gives an error like cannot read id_str and before that, it was giving an error like screen name is not defined</p>