Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.37 KB

Setup.md

File metadata and controls

49 lines (32 loc) · 1.37 KB

Setup

For Liverpool fans

Just a raise an issue with your email address and I will add you to the mailing list. YNWA

For other footie fans

Fork the repository and set up the following environment variables

Google Set up

  1. Go to the following link to set up an app password for your google account.

    Link

  2. Set secrets

    FROM: <your username>
    PASSWORD: <generated password>
    

Football Data

  1. Go to Football-Data.Org and create a free account.
  2. Set secret FOOTBALL_API_TOKEN: <api token from football-data.org>

Countdown GIF

  1. Go to CountDownMail.com and set up a free account.
  2. Get the api key from the profile section.
  3. Set secret TIMER_API_TOKEN: <api token from countdownmail.com>
  4. Create a timer and set timer property in config.json to the generated timer code.

Config

In the config.json file set your favourite team and the league they play in.

{
  "competition": "premier league",
  "team": "liverpool fc",
  "timer": "u51rq"
}

The config will be updated on the next push. Alternatively, you can run the updateConfig.js file manually.

Refer to the competitions.json file and the team.json file in the data folder for supported leagues and team names.