node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

watchful-protector

watchful-protector

a node module for simply and rapidly scaffolding #wowwwwwnetwork/@godtributes style bots.

NPM js-standard-style

var watchfulProtector = require('watchful-protector')
var config = {
      "consumer_key": "spiders",
      "consumer_secret": "spiders",
      "access_token": "moreSpiders",
      "access_token_secret": "bagofspiders"
    }
 
// WOWWWWWIDK
// will reply "wow, idk" to tweets that have a question mark
watchfulProtector(config, "yrBotsScreenName", function (tweet) {
  if (tweet.text.match(/\?/)) {
    return '@' + tweet.user.screen_name + ' wow, idk'
  }
})