Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j0k3r/tourdefrance-slack-bot
TourDeFranceBot will notify a Slack channel/group for every stage during the Tour de France 2016
https://github.com/j0k3r/tourdefrance-slack-bot
bot slack tourdefrance
Last synced: 2 months ago
JSON representation
TourDeFranceBot will notify a Slack channel/group for every stage during the Tour de France 2016
- Host: GitHub
- URL: https://github.com/j0k3r/tourdefrance-slack-bot
- Owner: j0k3r
- License: mit
- Created: 2014-07-08T19:52:22.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-22T09:43:35.000Z (over 8 years ago)
- Last Synced: 2024-10-12T13:44:14.906Z (3 months ago)
- Topics: bot, slack, tourdefrance
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tour de France Slack Bot
TourDeFranceBot will notify a Slack channel/group for every stage during the Tour de France 2016.
It uses the unofficial letour.fr json API (the one used for their mobile app iOS/Android).
It will post a message :
- when a stage will start (with info about it + map)
- every telegrams from the feed (could be too verbose..)### Preview
Here is a preview of the Le Touquet-Paris-Plage - Lille Métropole stage (from 2014).
![tourdefrance-slack-bot sample1](http://i.imgur.com/XV0SCTW.png)
----
![tourdefrance-slack-bot sample2](http://i.imgur.com/JPi6eXo.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 tourDeFranceNotifier.php >> tourDeFranceNotifier.log
````### Translation
Everything can be posted in 4 differents languages (de, en, es, fr). Spanish & Deutsch need to be done.
### Side notes
The code is ugly but it works ©