🚨 Hockey Game Bot

GitHub Watchers GitHub stars Beerpay | Twitter Follow Twitter Follow

The Hockey Game Bot is a Python application that leverages the NHL API and other hockey related statistics sites to send (near) real-time messages to social media platforms. The game bot allows fans of NHL teams to view the events & stats of a game all in one convenient place.

The game bot currently supports 3 social media platforms – Twitter, Discord & Slack. If you would like to add your own, feel free to submit your code via a Pull Request.

EM_sKf8WoAg-DpL

Game Bot Messages / Events

The messages are broken down into four sections for each part of a game day (and one extra section of the day after a game day). I am currently adding more events and features as they are requested or they are found to be useful in the context of following the game via social media. This list will be kept up to date as more types of messages and / or customizations to these are added.

Each message is linked to a sample tweet from the NJ Devils game bot Twitter account.

Pre-Game Messages

Live Game Messages

End of Game Messages

Day After Game Messages

On the day after a game, the game bot will generate two charts that provide context to how the team is performing for the entire season and in their last 10 games compared to the league average. The chart includes the following categories –

  • Team Point Percentage
  • Expected Goals & Actual Goals
  • Shooting Percentage & Save Percentage
  • High Danger Shooting Percentage & Save Percentage
  • PDO (SPSV% – the sum of a team’s shooting percentage and its save percentage)

Now What?

Want to run your own game bot? Check out the Github Repository for more detailed information on Getting Started. Feel free to reach out to me on Twitter for any help!


Currently Operating Game Bots

As of January 2020 there is currently game bot coverage for 9 of 31 teams. The table below contains information about the accounts, their respective owners and any notes. More than one person can run one for the same team without issue, but there will be overlap in the Twitter feed.

Team Name Twitter Account Owner Notes
Anaheim Ducks
Arizona Coyotes @CoyotesGameBot @mattdonders
Boston Bruins
Buffalo Sabres @BotSabres @KurekRobbie
Calgary Flames
Carolina Hurricanes
Chicago Blackhawks
Colorado Avalanche
Columbus Blue Jackets
Dallas Stars
Detroit Red Wings
Edmonton Oilers
Florida Panthers
Los Angeles Kings
Minnesota Wild
Montreal Canadiens
Nashville Predators @OTF_Preds_Bot @projpatsummit
New Jersey Devils @NJDevilsGameBot @mattdonders
New York Islanders
New York Rangers
Ottawa Senators
Philadelphia Flyers
Pittsburgh Penguins
Saint Louis Blues @STLBluesGameBot @mattdonders Willing to reliquensh to a Blues fan.
San Jose Sharks @Sharks_Gamebot @projpatsummit
Tampa Bay Lighting
Toronto Maple Leafs @MapleLeafsBot @RevelMagic Upgrading to V2 shortly.
Vancouver Canucks
Vegas Golden Knights @VGKGameBot @702goonie Forked version of V1 – not sure about V2 upgrade.
Washington Capitals @CapitalsHill @CapitalsHill Game bot mixed into regular feed.
Winnipeg Jets

Acknowledgments

Special thanks to all who have helped test along the way and provide data and stats to help improve the game bot and allow it to be a one-stop shop for most in-game events.

  • Natural Stat Trick – http://www.naturalstattrick.com/
  • Hockey Stat Cards – https://www.hockeystatcards.com/
  • Daily Faceoff – https://www.dailyfaceoff.com/
  • Hockey Reference – https://www.hockey-reference.com/
  • Scouting the Refs – https://scoutingtherefs.com/
  • An up to date list of all NHL API endpoints.

Game Bot Feedback