watchful-protector

1.0.5 • Public • Published

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'
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i watchful-protector

Weekly Downloads

4

Version

1.0.5

License

MIT

Last publish

Collaborators

  • coleww