This repository is no longer maintained. I have also moved this logic to a Go libary at https://github.com/imdevinc/go-fifa with a client available at https://github.com/imdevinc/fifa-bot
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
- 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
- In
private.py
, changeCHANNEL
to the desired channel in your Slack space - Use
pip install -r requirements.txt
- Run
python soccerbot.py
- Go to https://slack.com/customize/emoji
- Enter
yellow_card_new
as name - Upload
hand_yellow_card.png
- Save emoji
Repeat for red_card_new
and hand_red_card.png