Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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