Skip to content

Rugby World Cup Slack Bot will notify a Slack channel/group for every match during the 2015 Rugby World Cup in England

License

Notifications You must be signed in to change notification settings

j0k3r/rugby-worldcup-slack-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rugby World Cup Slack Bot

Rugby World Cup Slack Bot will notify a Slack channel/group for every match during the 2015 Rugby World Cup in England.

It uses the "unofficial" World Rugby json API (the one used for their mobile apps).

It will post a message :

  • when a match starts
  • on every try, conversion & penality
  • on every yellow & red card
  • on every replacement
  • on half time, kick-off and full time

Preview

Here is a preview of the Scotland vs Japan match:

rugby-worldcup-slack-bot sample

Requirements

Installation

  • Clone this repo
  • Set up a cron to run every minute:
* * * * * cd /path/to/folder && php rugbyWorldCupNotifier.php >> rugbyWorldCupNotifier.log

Side notes

The code is ugly but it works.

Everything is posted in french, but feel free to fork and use your own language. FYI, World Rugby API can provide text in en/fr/es/ja.

About

Rugby World Cup Slack Bot will notify a Slack channel/group for every match during the 2015 Rugby World Cup in England

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages