diff --git a/README.md b/README.md index d41641ed..39f65c3a 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Table of contents - [getRecentThreads](#getrecentthreads) - [getTeamRanking](#getteamranking) - [getTeam](#getteam) + - [getTeamStats](#getteamstats) - [connectToScorebot](#connecttoscorebot) ## Installation @@ -203,6 +204,24 @@ HLTV.getTeam({id: 6137}).then(res => { *** +#### getTeamStats + +Parses the info from the `hltv.org/stats/teams/` page + +Option | Type | Default value | Description | +:---:|:---:|:---:|:---:| +id | int | - | The team id + +```javascript +HLTV.getTeamStats({id: 6137}).then(res => { + ... +}) +``` + +**[See schema](https://github.com/gigobyte/HLTV/blob/master/src/models/FullTeamStats.ts)** + +*** + #### connectToScorebot Presents an interface to receive data when the HLTV scorebot updates