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 10, 2017
1 parent 4057e38 commit 576f8f9
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 @@ -23,6 +23,7 @@ Table of contents
- [getStreams](#getstreams)
- [getRecentThreads](#getrecentthreads)
- [getTeamRanking](#getteamranking)
- [getTeam](#getteam)
- [connectToScorebot](#connecttoscorebot)

## Installation
Expand Down Expand Up @@ -184,6 +185,24 @@ HLTV.getTeamRanking({year: '2017', month: 'may', day: '29'}).then((res) => {

***

#### getTeam

Parses the info from the `hltv.org/team/` page

Option | Type | Default value | Description |
:---:|:---:|:---:|:---:|
id | int | - | The team id

```javascript
HLTV.getTeam({id: 6137}).then(res => {
...
})
```

**[See schema](https://github.com/gigobyte/HLTV/blob/master/src/models/FullTeam.ts)**

***

#### connectToScorebot

Presents an interface to receive data when the HLTV scorebot updates
Expand Down

0 comments on commit 576f8f9

Please sign in to comment.