This is a bot that sends notifications about football matches to Twitter.
- When a match is about to start
- When a match starts
- Match events:
- Goals
- Yellow/Red cards
- Substitutions
- When a match ends
For getting this bot running locally you need to have a few things:
- Create an account on API-Football and get an API key and URL.
- A Twitter account and a Twitter app. You can get them here. You need to get the API key, API secret key, Access token and Access token secret.
- Select the league from which you want to get the matches. You can find the league ID here.
- Setup all the mentioned values in an environment file. You can use the
.env.example
file as a template. - Install the dependencies with
yarn
ornpm install
.
The app start running yarn start
or npm start
.
The app will make 1 request for getting the matches and 1 request per minute for each live match.
You can run the tests with yarn test
or npm test
.