GitXplorerGitXplorer
j

rugby-worldcup-slack-bot

public
3 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
35c47782a834777ec435dad92fead78b47a47c58

Update url to oauth token

jj0k3r committed 9 years ago
Unverified
b70a590d8c86e46294b1608598b81c1bd3ef1c6a

Update README & try to fix duplicate message

jj0k3r committed 9 years ago
Unverified
98687157657e9bcbcb402a1d8c3801bcef426f2d

Handle player name & replacements

jj0k3r committed 9 years ago
Unverified
c0f515626c5ef5db0b0c46cb05db65c921ff8590

Fix typo & MS messages

jj0k3r committed 9 years ago
Unverified
4646ecf81242edbd525e3a191439eb9530721623

Use timeline feed instead of Liveblog

jj0k3r committed 9 years ago
Unverified
98b8f4ce63fa6ce063536b9247e71d13e1b5705c

First commit

jj0k3r committed 9 years ago

README

The README file for this repository.

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.