Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j0k3r/rugby-worldcup-slack-bot
Rugby World Cup Slack Bot will notify a Slack channel/group for every match during the 2015 Rugby World Cup in England
https://github.com/j0k3r/rugby-worldcup-slack-bot
bot rugby slack worldcup
Last synced: about 1 month ago
JSON representation
Rugby World Cup Slack Bot will notify a Slack channel/group for every match during the 2015 Rugby World Cup in England
- Host: GitHub
- URL: https://github.com/j0k3r/rugby-worldcup-slack-bot
- Owner: j0k3r
- License: mit
- Created: 2015-09-18T18:05:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-24T14:44:07.000Z (almost 9 years ago)
- Last Synced: 2024-11-12T17:50:22.025Z (3 months ago)
- Topics: bot, rugby, slack, worldcup
- Language: PHP
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://i.imgur.com/egqDcus.png)
### Requirements
- PHP >= 5.3
- You need a token from Slack:
- Jump at https://api.slack.com/docs/oauth-test-tokens (you have to login)
- and you will find your token.### 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.