stephenyeargin / hubot-hockey Goto Github PK
View Code? Open in Web Editor NEW๐๐ค Get the latest scores and playoff odds for your NHL team.
Home Page: https://www.npmjs.com/package/hubot-hockey
License: MIT License
๐๐ค Get the latest scores and playoff odds for your NHL team.
Home Page: https://www.npmjs.com/package/hubot-hockey
License: MIT License
Use a the team name to query the next game, e.g. https://api.seatgeek.com/2/events?performers.slug=nashville-predators&venue.id=2195
statsapi.web.nhl.com is NXDOMAIN (at least right now). Tried on two different networks.
clinchIndicator
is available in the feed, e.g. x
, y
, etc.{Points} + (82 - {Games Played}) * 2 < {Total Points of Last wildcard team in conference})
Ignore tieb-reaking, assume best outcome.
The following checklist is for all of the Hubot packages I maintain.
[![npm version](https://badge.fury.io/js/hubot-PACKAGE_NAME.svg)](http://badge.fury.io/js/hubot-PACKAGE_NAME) [![Build Status](https://travis-ci.org/stephenyeargin/hubot-PACKAGE_NAME.png)](https://travis-ci.org/stephenyeargin/hubot-PACKAGE_NAME)
package.json
"author": "Stephen Yeargin <[email protected]>",
"repository": {
"type": "git",
"url": "git://github.com/stephenyeargin/hubot-PACKAGE_NAME.git"
},
"bugs": {
"url": "https://github.com/stephenyeargin/hubot-PACKAGE_NAME/issues"
},
"peerDependencies": {
"hubot": ">=2 <10 || 0.0.0-development"
},
Gruntfile.js
additionalFiles: ['package-lock.json']
.travis.yml
language: node_js
sudo: false
notifications:
email: false
node_js:
- "8" # stable
- "6" # LTS
- "4" # maintenance
cache:
directories:
- node_modules
This matters when teams have played very different numbers of games (see OTT right now).
curl -L https://api-web.nhle.com/v1/standings/now | jq '.standings[] | "\(.teamName.default) -- \(.pointPctg)"'
Is part of the answer.
From late April through the first of October, the script only reports the last result (as does the site). Instead, it should reply with the latest headline for the given team (or something of that nature).
In hockey-bot, we inspect the timestamp to determine whether to use the odds. Could do the same thing here, showing one or both. Note that this will slow down the odds response a bit as it reaches out for the data.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.