Skip to content

A script to notify Slack channels with live updates from FIBA World Cup matches.

License

Notifications You must be signed in to change notification settings

kyzn/fiba-world-cup-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A sample run

NAME

fiba-world-cup-slack 0.01

DESCRIPTION

FIBA World Cup game notifier in your Slack workspace.

Note that this only posts "game started" and "final score" notifications.

Run following command to install dependencies.

cpanm File::Slurper Furl Getopt::Long List::Util JSON::XS

You can set a cronjob to run this script at every 5 minutes.

SYNOPSIS

First, you will need a Slack incoming webhook URL. Here's how to get it:

Post from FIBA to screen

perl fiba-world-cup-slack.pl

Post from FIBA to Slack

perl fiba-world-cup-slack.pl --slack=https://hooks.slack.com/services/...

You can specify multiple Slack URLs

perl fiba-world-cup-slack.pl --slack=... --slack=...

Post from local JSON file to screen

perl fiba-world-cup-slack.pl --debug=downloaded.json

Post from local JSON file to Slack

perl fiba-world-cup-slack.pl --debug=downloaded.json --slack=...

Add this to increase politeness sleep (defaults to 2 seconds)

--sleep=10

LICENSE

MIT.

ATTRIBUTION

This script is based on kyzn/fifa-world-cup-slack which was partly based on j0k3r/worldcup-slack-bot.

About

A script to notify Slack channels with live updates from FIBA World Cup matches.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages