Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1010 Bytes

README.md

File metadata and controls

49 lines (35 loc) · 1010 Bytes

Teamspeak 3 Server Query library for Golang

Package ts3 implements the Teamspeak 3 ServerQuery protocol described here

Features

  • Notification handling
  • Some helper functions

Example Usage

See the test file for a more comprehensive example

package main

import (
    "darfk/ts3"
    "log"
)

func main() {
    client, err := ts3.NewClient("teamspeak.darfk.net:10011")
    if err != nil {
        log.Fatal(err)
    }
    
    // This a test user account
    response, err := client.Exec(ts3.Login("test", "xWUkRRlM"))
    if err != nil {
        log.Fatal(err)
    }
    
    response, err = client.Exec(ts3.Version())
    if err != nil {
        log.Fatal(err)
    }

    log.Printf("version %q\n", response)

    client.Close()
}

Licence

MIT