@lukekarrys/entry-watcher
Entry watcher for bracket.club
Last updated a year ago by lukekarrys .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lukekarrys/entry-watcher 
SYNC missed versions from official npm registry.

entry-watcher

Entry watcher for bracket.club.

Build Status Greenkeeper badge

Usage

const EntryWatcher = require('entry-watcher');
new EntryWatcher({
  logger: null,
  sport: 'ncaam',
  year: '2015',
  domain: 'bracket.club',
  tags: ['bracketclub'],
  type: 'tweet',
  auth: {
    // Passed to twitter streaming listener
    // Could be extended in the future based on `options.type`
    'consumer_key': '',
    'consumer_secret': '',
    'access_token': '',
    'access_token_secre': ''
  }
  onSave: function (entry) {
    // Entry is the full entry passsed back
    // plus the `bracket` value
  },
  onError: function () {
    // Can be used to plug in to when there are entries
    // that dont meet the validation such as not having a valid
    // bracket or being outside the time limit
  }
}).start();

Checking a Specific Tweet

new EntryWatcher({
  // All the same options as above
}).find(TWEET_ID)

What is it doing?

It is setting up a Twitter listener using twit and when a tweet is found, it is checking whether it contains a valid bracket. If it does, it will call the onSave handler.

Is it on npm?

Yeah, now that there are publically scoped modules it's at npm install @lukekarrys/entry-watcher.

LICENSE

MIT

Current Tags

  • 5.1.5                                ...           latest (a year ago)

15 Versions

  • 5.1.5                                ...           a year ago
  • 5.1.4                                ...           a year ago
  • 5.1.3                                ...           2 years ago
  • 5.1.2                                ...           2 years ago
  • 5.1.1                                ...           2 years ago
  • 5.1.0                                ...           2 years ago
  • 5.0.6                                ...           3 years ago
  • 5.0.5                                ...           3 years ago
  • 5.0.4                                ...           4 years ago
  • 5.0.3                                ...           4 years ago
  • 5.0.2                                ...           4 years ago
  • 5.0.1                                ...           4 years ago
  • 5.0.0                                ...           4 years ago
  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (7)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |