Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte authored Aug 15, 2017
1 parent 696d6f6 commit 2547879
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Table of contents
- [getRecentThreads](#getrecentthreads)
- [getTeamRanking](#getteamranking)
- [getTeam](#getteam)
- [getTeamStats](#getteamstats)
- [connectToScorebot](#connecttoscorebot)

## Installation
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2547879

Please sign in to comment.