Slack wc-watcher
This bot uses the undocumented FIFA API's to report on World Cup matches. It will check every 60 seconds for new events. The following events are reported:
- Goals scored
- Yellow/Red cards
- Substitutions
- Match start/stop
- Penalty kicks missed/scored
Sample
Usage
- Setup a new Slack App (https://api.slack.com/apps) with Webhook permission
- Copy
private.py.config
toprivate.py
- In
private.py
, changeWEBHOOK_URL
to point to your Slack webhook- If you want to see debug information, which currently pings a heartbeat every hour, also fill in the
DEBUG_WEBHOOK
url with a Slack webhook and setDEBUG = True
- You can also set
WC_COMPETITION = None
insoccerbot.py
to get all current FIFA matches and see what the output looks like. Just make sure to change it back toWC_COMPETITION = 17
for world cup only
- If you want to see debug information, which currently pings a heartbeat every hour, also fill in the
- Use
pip install -r requirements.txt
- Run
python soccerbot.py