af46acdec8
Extends the OnlineClient information variables to include new information. These are client UID, client away information, voice information, client time information, client groups information, client info, client icon, client country, client IP and client badges. |
||
---|---|---|
.github/workflows | ||
.gitattributes | ||
.gitignore | ||
.golangci.yml | ||
.goreleaser.yaml | ||
LICENSE | ||
README.md | ||
basic_cmds.go | ||
basic_cmds_test.go | ||
client.go | ||
client_test.go | ||
cmd.go | ||
cmd_test.go | ||
connection.go | ||
connection_test.go | ||
errors.go | ||
errors_test.go | ||
go.mod | ||
go.sum | ||
helpers.go | ||
helpers_test.go | ||
mockserver_test.go | ||
notification.go | ||
notification_test.go | ||
scanner.go | ||
scanner_test.go | ||
server_cmds.go | ||
server_cmds_test.go |
README.md
TeamSpeak 3
go-ts3 is a Go client for the TeamSpeak 3 ServerQuery Protocol.
Features
- ServerQuery Support.
Installation
go get -u github.com/multiplay/go-ts3
Examples
Using go-ts3 is simple just create a client, login and then send commands e.g.
package main
import (
"log"
"github.com/multiplay/go-ts3"
)
func main() {
c, err := ts3.NewClient("192.168.1.102:10011")
if err != nil {
log.Fatal(err)
}
defer c.Close()
if err := c.Login(user, pass); err != nil {
log.Fatal(err)
}
if v, err := c.Version(); err != nil {
log.Fatal(err)
} else {
log.Println("server is running:", v)
}
}
Documentation
License
go-ts3 is available under the BSD 2-Clause License.