UNPKG

hubot-hockey

Version:

Get the latest NHL playoff odds for your team.

31 lines (19 loc) 1.6 kB
# 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 <team>` - Show your team's current playoff odds and next game - `hubot nhl` - Show division leaders - `hubot nhl [division|conference]` - Show division or conference standings