Skip to content

stattleship/glickman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

98 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

glickman

Glickman is your statmoji(tm) sports slackbot powered by the Stattleship API. https://www.stattleship.com.

Its namesake is Marty Glickman, a pioneering American radio announcer and sportscaster.

This bot is make possible by Slack-Ruby-Bot, a generic Slack bot framework written in Ruby on top of slack-ruby-client.

It also relies on the stattleship-ruby gem to fetch sports stats and info as well as our list of teamojis in many of its commands.

Try It Out!

Join our public Fanboat Slack channels and try out "cosell", its Glickman bot integration.

You can try out any of the commands below, just use "cosell:" instead of "glickman:" to talk to the bot.

Installation

See: https://github.com/dblock/slack-ruby-bot/blob/master/TUTORIAL.md

After bundling and setting up your .env file the the API keys, you should be able to run foreman start to get the bot up and running.

Note: uses the stattleship-ruby gem.

Heroku Deploy

Deploy

Stattleship API Key

You'll need a .env with API keys

SLACK_API_TOKEN=
STATTLESHIP_ACCESS_TOKEN=

You can get a Stattleship API key at http://www.stattleship.com.

Commands

Glickman knows a good deal about sports.

What's hot in basketball

Complete List

:lower_left_paintbrush: :basketball: - Colors for each sportmoji team
:lower_left_paintbrush: :cow: :football: - Colors a specific sportmoji team
:face_with_head_bandage: :basketball: - Random injury report for a sportmoji
:face_with_head_bandage: :bear: :ice_hockey_stick_and_puck: - Random injury report for a teamoji
:tophat: - Hockey hat tricks
:rotating_light: - Recently scored :ice_hockey_stick_and_puck: goals
:fire: :basketball: - Recent hotness for a sport :baseball: :basketball: :football: :ice_hockey_stick_and_puck:
:basketball: <first name> <last name> - Most recent player game log for :baseball: :basketball: :football: :ice_hockey_stick_and_puck:
:basketball: :game_die: <first name> <last name> - Random player game log for :baseball: :basketball: :football: :ice_hockey_stick_and_puck:
:round_pushpin: :four_leaf_clover: :basketball: - Map of sport team last 10 games
:package: :wolf: :ice_hockey_stick_and_puck: - Hockey penalties for a teamoji
:shirt: :skull_and_crossbones: :football: - Player info
:no_mouth: :bridge_at_night: :basketball: - Team results as emoji
:calendar: :ice_hockey_stick_and_puck: - Schedules for a sport :baseball: :basketball: :football: :ice_hockey_stick_and_puck:
:calendar: :four_leaf_clover: :basketball: - Schedules for a teamoji
:mega: :baseball: - :baseball: score updates
:mega: :basketball: - :basketball: score updates
:mega: :football: - :football: score updates
:mega: :ice_hockey_stick_and_puck: - Hockey score updates
:tada: :crown: :ice_hockey_stick_and_puck: - Recent hockey goals scored for teamoji
:top: :basketball: FT - Top three leaders for 3P, FG, A, P, FT
:top: :football: TD - Top three leaders for TD
:top: :ice_hockey_stick_and_puck: G - Top three leaders for G, A, S, P, PPG
:slot_machine: - :basketball: triple-triple leaders
:hamburger: - :basketball: double-double leaders
:doughnut: - :ice_hockey_stick_and_puck: shutout leaders
:runner: - :football: rushing leaders
:house: - :baseball: home run leaders
:cherries: - :baseball: doubles leaders
:dango: - :baseball: triples leaders
:bowling: - :baseball: pitcher strikout leaders
:curry:, :crown:, or :rose: - Random Stephen Curry, Lebron James or Derrick Rose game log
teamoji :basketball: - List team teamojis per sport
:100: :calendar: :basketball: - Best :basketball: player performances for yesterday
:100:: :basketball: - Best :basketball: player performances on the season
:rain_cloud: - Best :basketball: shooting performances
:thunder_cloud_and_rain: - Best :basketball: three point shooting performances
:comet: :four_leaf_clover: :basketball: or :comet: :bear: :ice_hockey_stick_and_puck: - Current win/loss streak for a team
:comet: :basketball: or :comet: :ice_hockey_stick_and_puck: - Current win/loss streak for a sport
:comet: :joy: :basketball: - Current winning streaks for a sport
:comet: :cry: :basketball: - Current losing streaks for a sport
:movie_camera: :rocket: :basketball: - Random GIF for a team and sport using teamojis

:lower_left_paintbrush: ๐Ÿ€ - Colors for each sportmoji team

:lower_left_paintbrush: ๐Ÿฎ ๐Ÿˆ - Colors a specific sportmoji team

๐Ÿค• ๐Ÿ€ - Random injury report for a sportmoji

๐Ÿค• ๐Ÿป :ice_hockey_stick_and_puck: - Random injury report for a teamoji

๐ŸŽฉ - Hockey hat tricks

๐Ÿšจ - Recently scored :ice_hockey_stick_and_puck: goals

๐Ÿ”ฅ ๐Ÿ€ - Recent hotness for a sport โšพ ๐Ÿ€ ๐Ÿˆ :ice_hockey_stick_and_puck:

๐Ÿ€ - Most recent player game log for โšพ ๐Ÿ€ ๐Ÿˆ :ice_hockey_stick_and_puck:

๐Ÿ€ ๐ŸŽฒ - Random player game log for โšพ ๐Ÿ€ ๐Ÿˆ :ice_hockey_stick_and_puck:

๐Ÿ“ ๐Ÿ€ ๐Ÿ€ - Map of sport team last 10 games

๐Ÿ“ฆ ๐Ÿบ :ice_hockey_stick_and_puck: - Hockey penalties for a teamoji

๐Ÿ‘• โ˜ ๏ธ ๐Ÿˆ - Player info

๐Ÿ˜ถ ๐ŸŒ‰ ๐Ÿ€ - Team results as emoji

๐Ÿ“† :ice_hockey_stick_and_puck: - Schedules for a sport โšพ ๐Ÿ€ ๐Ÿˆ :ice_hockey_stick_and_puck:

๐Ÿ“† ๐Ÿ€ ๐Ÿ€ - Schedules for a teamoji

๐Ÿ“ฃ โšพ - โšพ score updates

๐Ÿ“ฃ ๐Ÿ€ - ๐Ÿ€ score updates

๐Ÿ“ฃ ๐Ÿˆ - ๐Ÿˆ score updates

๐Ÿ“ฃ :ice_hockey_stick_and_puck: - Hockey score updates

๐ŸŽ‰ ๐Ÿ‘‘ :ice_hockey_stick_and_puck: - Recent hockey goals scored for teamoji

๐Ÿ” ๐Ÿ€ FT - Top three leaders for 3P, FG, A, P, FT

๐Ÿ” ๐Ÿˆ TD - Top three leaders for TD

๐Ÿ” :ice_hockey_stick_and_puck: G - Top three leaders for G, A, S, P, PPG

๐ŸŽฐ - ๐Ÿ€ triple-triple leaders

๐Ÿ” - ๐Ÿ€ double-double leaders

๐Ÿฉ - :ice_hockey_stick_and_puck: shutout leaders

๐Ÿƒ - ๐Ÿˆ rushing leaders

๐Ÿ  - โšพ home run leaders

๐Ÿ’ - โšพ doubles leaders

๐Ÿก - โšพ triples leaders

๐ŸŽณ - โšพ pitcher strikout leaders

๐Ÿ›, ๐Ÿ‘‘, or ๐ŸŒน - Random Stephen Curry, Lebron James or Derrick Rose game log

teamoji ๐Ÿ€ - List team teamojis per sport

๐Ÿ’ฏ ๐Ÿ“† ๐Ÿ€ - Best ๐Ÿ€ player performances for yesterday

๐Ÿ’ฏ: ๐Ÿ€ - Best ๐Ÿ€ player performances on the season

:rain_cloud: - Best ๐Ÿ€ shooting performances

:thunder_cloud_and_rain: - Best ๐Ÿ€ three point shooting performances

โ˜„๏ธ ๐Ÿ€ ๐Ÿ€ or โ˜„๏ธ ๐Ÿป :ice_hockey_stick_and_puck: - Current win/loss streak for a team

โ˜„๏ธ ๐Ÿ€ or โ˜„๏ธ :ice_hockey_stick_and_puck: - Current win/loss streak for a sport

โ˜„๏ธ ๐Ÿ˜‚ ๐Ÿ€ - Current winning streaks for a sport

โ˜„๏ธ ๐Ÿ˜ข ๐Ÿ€ - Current losing streaks for a sport

๐ŸŽฅ ๐Ÿš€ ๐Ÿ€ - Random GIF for a team and sport using teamojis

Some Highlights

More info on a few commands.

Colors

List team colors.

Team Colors

:lower_left_paintbrush: ๐Ÿ€

:lower_left_paintbrush: ๐Ÿˆ

:lower_left_paintbrush: :ice_hockey_stick_and_puck:

Or for a team,

:lower_left_paintbrush: ๐Ÿฎ ๐Ÿ€

:lower_left_paintbrush: ๐Ÿฎ ๐Ÿˆ

:lower_left_paintbrush: ๐Ÿป :ice_hockey_stick_and_puck:

Player Game Log

Last

Basketball Game Log

๐Ÿ€ first_name last_name

๐Ÿˆ first_name last_name

Hockey Game Log

:ice_hockey_stick_and_puck: first_name last_name

For example:

๐Ÿ€ Lebron James

๐Ÿˆ tom brady

:ice_hockey_stick_and_puck: tyler seguin

Random

Basketball Game Log

๐Ÿ€ ๐ŸŽฒ first_name last_name

๐Ÿˆ ๐ŸŽฒ first_name last_name

Hockey Game Log

:ice_hockey_stick_and_puck: ๐ŸŽฒ first_name last_name

For example:

๐Ÿ€ ๐ŸŽฒ Lebron James

๐Ÿˆ ๐ŸŽฒ tom brady

:ice_hockey_stick_and_puck: ๐ŸŽฒ tyler seguin

Feats

Feats in action

๐ŸŽฉ Hat tricks in hockey

๐Ÿ”ฅ ๐Ÿ€

๐Ÿ”ฅ ๐Ÿˆ

๐Ÿ”ฅ :ice_hockey_stick_and_puck:

๐Ÿšจ Recent goals scored (5 random sampling)

Stat Leaders

Goalie shutout leaders

๐Ÿฉ

Rusing yard leaders

๐Ÿƒ

Top Stats

Top field goals made basketball performances

:rain_cloud:

Top three pointers basketball performances

:thunder_cloud_and_rain:

Results

๐Ÿ˜ถ ๐Ÿ€ ๐Ÿ€

๐Ÿ˜ถ ๐Ÿป :ice_hockey_stick_and_puck:

Schedules

Schedules

๐Ÿ“† ๐Ÿ€

๐Ÿ“† ๐Ÿˆ

๐Ÿ“† :ice_hockey_stick_and_puck:

Schedule For Team

๐Ÿ“† ๐Ÿ€ basketball:

๐Ÿ“† ๐Ÿฎ ๐Ÿˆ

๐Ÿ“† ๐Ÿป :ice_hockey_stick_and_puck:

Scores

In-progress and recently ended game scores per sport

๐Ÿ“ฃ ๐Ÿ€

๐Ÿ“ฃ ๐Ÿˆ

๐Ÿ“ฃ :ice_hockey_stick_and_puck:

Scoring Plays

Recent random sampling of scoring plays for the NFL ๐Ÿˆ and NHL โ„๏ธ. NBA ๐Ÿ€ does not have scoring play data.

๐ŸŽ‰ teamoji sport

For example:

๐ŸŽ‰ ๐Ÿ :ice_hockey_stick_and_puck:

NHL Scoring Plays

๐ŸŽ‰ ๐Ÿฑ ๐Ÿˆ

NFL Scoring Plays

Injuries

Random injury report per sport

Injury report

๐Ÿค• ๐Ÿ€

๐Ÿค• ๐Ÿˆ

๐Ÿค• :ice_hockey_stick_and_puck:

Penalties

Recent random sampling of penalties for NHL โ„๏ธ. NBA ๐Ÿ€ and the NFL ๐Ÿˆ and do not have penalty data.

๐Ÿ“ฆ ๐Ÿ—ฝ :ice_hockey_stick_and_puck:

NHL Penalties

Players

Use teamoji(tm) to get a list of player deets.

Players

Celtics

๐Ÿ‘• ๐Ÿ€ ๐Ÿ€

Chicago Bears

๐Ÿ‘• ๐Ÿป ๐Ÿˆ

Memphis Grizzlies

๐Ÿ‘• ๐Ÿป ๐Ÿ€

Boston Bruins

๐Ÿ‘• ๐Ÿป :ice_hockey_stick_and_puck:

Basketball Doubles

Doubles

๐ŸŽฐ Triple Doubles

๐Ÿ” Double double

Frivolities

๐Ÿ†

๐Ÿ•

Easter eggs!

Playermojis

Each return a random player game log

๐Ÿ‘‘ Lebron James

๐Ÿ› Stephen Curry

๐ŸŒน Derrick Rose

Teamojis

Use teamojis with the player, schedule commands.

These commands return the teamojis for their league.

teamoji ๐Ÿ€

teamoji ๐Ÿˆ

teamoji :ice_hockey_stick_and_puck:

Maps

Use teamojis with the ๐Ÿ“ and sport and team

For example:

๐Ÿ“ ๐Ÿ”ฎ ๐Ÿ€

Maps

GIFs

Random giphy for Boston Celtics ...

๐ŸŽฅ ๐Ÿ€ ๐Ÿ€

... and Bruins.

๐ŸŽฅ ๐Ÿป :ice_hockey_stick_and_puck:

About

Glickman is your statmoji(tm) sports slackbot powered by Slack and the Stattleship API. https://www.stattleship.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages