Skip to content

twbarber/big-play-bot

Repository files navigation

Big Play Bot

Polls the NFL.com Big Play Feed and posts updates to your Slack channel of choice.

Videos are often added to the Big Play Feed ~5-10 minutes after they happen.

Example

Sample Bot Posting

Disclaimer: I am in no way associated with the NFL, and claim no ownership to the videos, images, and other forms of media retrieved by this application.

Usage

  1. Clone this repository
  2. Create your Slack Incoming Webhook
  3. Create a Configuration File at src/main/resources/application.properties
  4. Build the project using ./gradlew jar
  5. Launch your jar file using java -jar big-play-bot-0.0.1.jar

How it Works

While the application is running, all future updates to the NFL Big Play Feed will be sent to the specified channel via your Incoming Webhook. Existing entries in the feed are ignored, in order to prevent message spam when starting and restarting the application.

Configuration

A Slack Incoming Webhook URL, destination channel, and polling wait time are all required configuration values.

You'll need to specify an application.properties file in src/main/resources in order for this to run correctly. An example can be found here.

Alternatively, create a new application.properties file and paste in the following properties with your desired configuration values.

Properties

slackWebhookUrl: Your Slack incoming Webhook.
slackoChannel: Channel you want highlights to post to.
refreshInterval: How often to poll the feed, in milliseconds.

Sample

settings.slackWebhookUrl=https://hooks.slack.com/services/.../.../...
settings.slackChannel=general
settings.refreshInterval=15000

About

NFL Big Play Feed Scraper + Slack Poster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published