broadcast/mumbleclient.go

30 lines
485 B
Go
Raw Normal View History

2020-10-22 00:11:59 +02:00
package main
import (
"fmt"
"layeh.com/gumble/gumble"
"layeh.com/gumble/gumbleutil"
// _ "layeh.com/gumble/opus"
)
func main() {
config := gumble.NewConfig()
config.Username = "gumble-test"
config.Attach(gumbleutil.Listener{
TextMessage: func(e *gumble.TextMessageEvent) {
fmt.Printf("Received text message: %s\n", e.Message)
},
})
_, err := gumble.Dial("parla.abbiamoundominio.org:64738", config)
if err != nil {
panic(err)
}
// var message TextMessage
}