A golang TeamSpeak 3 ServerQuery client
Перейти к файлу
Bob D af46acdec8
Extended OnlineClient information variables (#43)
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.
2024-02-13 22:06:26 +00:00
.github/workflows fix: command response processing issues (#40) 2023-04-25 01:19:18 +01:00
.gitattributes chore: enable github actions validation (#36) 2022-11-30 11:22:47 +00:00
.gitignore Initial TeamSpeak 3 ServerQuery client 2017-07-13 13:58:48 +00:00
.golangci.yml chore: enable github actions validation (#36) 2022-11-30 11:22:47 +00:00
.goreleaser.yaml ci: automate releases (#37) 2023-01-03 16:13:18 +00:00
LICENSE Initial commit 2017-07-12 11:21:57 +01:00
README.md chore: enable github actions validation (#36) 2022-11-30 11:22:47 +00:00
basic_cmds.go chore: enable github actions validation (#36) 2022-11-30 11:22:47 +00:00
basic_cmds_test.go fix: race conditions in tests (#38) 2022-12-04 19:38:52 +00:00
client.go fix: command response processing issues (#40) 2023-04-25 01:19:18 +01:00
client_test.go fix: race conditions in tests (#38) 2022-12-04 19:38:52 +00:00
cmd.go chore: enable github actions validation (#36) 2022-11-30 11:22:47 +00:00
cmd_test.go chore: enable github actions validation (#36) 2022-11-30 11:22:47 +00:00
connection.go fix: command response processing issues (#40) 2023-04-25 01:19:18 +01:00
connection_test.go fix: race conditions in tests (#38) 2022-12-04 19:38:52 +00:00
errors.go Notification support (#18) 2019-02-06 18:34:12 +00:00
errors_test.go chore: enable github actions validation (#36) 2022-11-30 11:22:47 +00:00
go.mod ci: automate releases (#37) 2023-01-03 16:13:18 +00:00
go.sum ci: automate releases (#37) 2023-01-03 16:13:18 +00:00
helpers.go Extended OnlineClient information variables (#43) 2024-02-13 22:06:26 +00:00
helpers_test.go feat: Make go mod compatible 2019-10-12 21:35:43 +01:00
mockserver_test.go Extended OnlineClient information variables (#43) 2024-02-13 22:06:26 +00:00
notification.go fix: command response processing issues (#40) 2023-04-25 01:19:18 +01:00
notification_test.go Notification support (#18) 2019-02-06 18:34:12 +00:00
scanner.go Initial TeamSpeak 3 ServerQuery client 2017-07-13 13:58:48 +00:00
scanner_test.go Initial TeamSpeak 3 ServerQuery client 2017-07-13 13:58:48 +00:00
server_cmds.go Extended OnlineClient information variables (#43) 2024-02-13 22:06:26 +00:00
server_cmds_test.go Extended OnlineClient information variables (#43) 2024-02-13 22:06:26 +00:00

README.md

TeamSpeak 3 Go Report Card License GoDoc

go-ts3 is a Go client for the TeamSpeak 3 ServerQuery Protocol.

Features

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.