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
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.
- Clone this repository*
- Create your Slack Incoming Webhook
- Create a Configuration File at
src/main/resources/application.properties
- Build the project using
./gradlew jar
- Launch your jar file using
java -jar big-play-bot-0.0.1.jar
*Requires Kotlin for Intellij or Eclipse.
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.
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.
slackWebhookUrl
: Your Slack incoming Webhook.
slackoChannel
: Channel you want highlights to post to.
refreshInterval
: How often to poll the feed, in milliseconds.
settings.slackWebhookUrl=https://hooks.slack.com/services/.../.../...
settings.slackChannel=general
settings.refreshInterval=15000