Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyzn/fiba-world-cup-slack
A script to notify Slack channels with live updates from FIBA World Cup matches.
https://github.com/kyzn/fiba-world-cup-slack
basketball fiba hacktoberfest perl perl5 slack slack-bot world-cup worldcup
Last synced: 9 days ago
JSON representation
A script to notify Slack channels with live updates from FIBA World Cup matches.
- Host: GitHub
- URL: https://github.com/kyzn/fiba-world-cup-slack
- Owner: kyzn
- License: mit
- Created: 2019-09-01T03:33:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-06-13T19:06:39.000Z (over 4 years ago)
- Last Synced: 2025-01-12T13:50:15.606Z (15 days ago)
- Topics: basketball, fiba, hacktoberfest, perl, perl5, slack, slack-bot, world-cup, worldcup
- Language: Perl
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![A sample run](sample.png)
# 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:
- Create an app at [https://api.slack.com/apps?new\_app=1](https://api.slack.com/apps?new_app=1)
- Go to your app details page at [https://api.slack.com](https://api.slack.com)
- Go to "Incoming webhooks" on left navigation, it will be there.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](https://github.com/kyzn/fifa-world-cup-slack)
which was partly based on
[j0k3r/worldcup-slack-bot](https://github.com/j0k3r/worldcup-slack-bot).