Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephenyeargin/hubot-hockey
🏒🤖 Get the latest scores and playoff odds for your NHL team.
https://github.com/stephenyeargin/hubot-hockey
hacktoberfest hockey hubot hubot-scripts moneypuck nhl nhl-api playoff-odds
Last synced: 23 days ago
JSON representation
🏒🤖 Get the latest scores and playoff odds for your NHL team.
- Host: GitHub
- URL: https://github.com/stephenyeargin/hubot-hockey
- Owner: stephenyeargin
- License: mit
- Created: 2015-05-26T04:25:43.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-09-22T04:21:04.000Z (about 2 months ago)
- Last Synced: 2024-09-22T04:21:54.518Z (about 2 months ago)
- Topics: hacktoberfest, hockey, hubot, hubot-scripts, moneypuck, nhl, nhl-api, playoff-odds
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/hubot-hockey
- Size: 1.18 MB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hubot Hockey
[![npm version](https://badge.fury.io/js/hubot-hockey.svg)](http://badge.fury.io/js/hubot-hockey) [![Node CI](https://github.com/stephenyeargin/hubot-hockey/actions/workflows/nodejs.yml/badge.svg)](https://github.com/stephenyeargin/hubot-hockey/actions/workflows/nodejs.yml)
Get the game results and the latest NHL playoff odds for the selected team from the very useful [MoneyPuck.com](https://moneypuck.com/).
## Configuration
There is no additional configuration necessary if you simply wish to get the latest game results and playoff odds.
| Environment Variable | Required? | Description |
| -------------------- | :-------: | ----------- |
| `HUBOT_HOCKEY_EXT_STANDINGS` | No | Adds columns to the standings table. See notes below. |
| `HUBOT_HOCKEY_HIDE_ODDS` | No | Skips show the odds from MoneyPuck |* By default, the standings table will show Games Played, Wins, Losses, Overtime Losses, and Points.
* Setting `HUBOT_HOCKEY_EXT_STANDINGS` to any truth-y value will add Points Percentage, Last 10, and Streak.## Adding to Your Hubot
See full instructions [here](https://github.com/github/hubot/blob/master/docs/scripting.md#npm-packages).
1. `npm install hubot-hockey --save` (updates your `package.json` file)
2. Open the `external-scripts.json` file in the root directory (you may need to create this file) and add an entry to the array (e.g. `[ 'hubot-hockey' ]`).## Commands
- `hubot ` - Show your team's current playoff odds and next game
- `hubot nhl` - Show division leaders
- `hubot nhl [division|conference]` - Show division or conference standings