ts3
Version:
An abstracted Teamspeak 3 serverquery client
41 lines (27 loc) • 798 B
Markdown
> an abstracted teamspeak 3 server query client
[](http://connormcf.com/node-ts3/)
```bash
npm install ts3 -S
```
```js
const TS3 = require('ts3')
const ts = new TS3()
ts.connect('127.0.0.1', 10011)
.then(async () => {
let auth = await ts.auth('serveradmin', 'supersecret', 1)
console.log('authed', auth)
ts.setName('node-ts3')
ts.subscribe('server')
ts.subscribe('channel', 1)
ts.subscribe('textprivate')
})
ts.on('clientJoin', (ev) => {
ev.client.message('Hello ' + ev.client.nick + '!')
})
```
See additional examples in the [examples directory](https://github.com/ConnorMcF/node-ts3/tree/master/example).
Generated documentation is available from [connormcf.com/node-ts3](http://connormcf.com/node-ts3/).