/wc-watcher

Primary LanguagePythonThe UnlicenseUnlicense

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

sample

Usage

  1. Setup a new Slack App (https://api.slack.com/apps) with Webhook permission
  2. Copy private.py.config to private.py
  3. In private.py, change WEBHOOK_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 set DEBUG = True
    • You can also set WC_COMPETITION = None in soccerbot.py to get all current FIFA matches and see what the output looks like. Just make sure to change it back to WC_COMPETITION = 17 for world cup only
  4. Use pip install -r requirements.txt
  5. Run python soccerbot.py