Fixing build errors
This commit is contained in:
parent
dbc4583794
commit
43f412e722
10
test.go
10
test.go
|
@ -6,30 +6,30 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Test struct {
|
type TestSettings struct {
|
||||||
password string
|
password string
|
||||||
ip string
|
ip string
|
||||||
port string
|
port string
|
||||||
}
|
}
|
||||||
|
|
||||||
var test Test
|
var test TestSettings
|
||||||
|
|
||||||
func Test(password, ip, port string) {
|
func Test(password, ip, port string) {
|
||||||
test = Test{
|
test = TestSettings{
|
||||||
password: password,
|
password: password,
|
||||||
ip: ip,
|
ip: ip,
|
||||||
port: port,
|
port: port,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t Test) createClient(uname) *gumble.Client {
|
func (t TestSettings) createClient(uname string) *gumble.Client {
|
||||||
return gumble.NewClient(&gumble.Config{
|
return gumble.NewClient(&gumble.Config{
|
||||||
Username: uname,
|
Username: uname,
|
||||||
Password: t.password,
|
Password: t.password,
|
||||||
Address: t.ip + ":" + t.port})
|
Address: t.ip + ":" + t.port})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t Test) testYoutubeSong() {
|
func (t TestSettings) testYoutubeSong() {
|
||||||
dummyClient := t.createClient("dummy")
|
dummyClient := t.createClient("dummy")
|
||||||
dummyClient.Connect()
|
dummyClient.Connect()
|
||||||
dummyUser := dj.client.Users.Find("dummy")
|
dummyUser := dj.client.Users.Find("dummy")
|
||||||
|
|
Reference in a new issue