forked from an/flokati
test
This commit is contained in:
parent
f375dc5e4d
commit
45e0de4b8c
|
@ -31,8 +31,11 @@ func Matrix() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
fmt.Println("hier 1")
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
|
fmt.Println("hier 2")
|
||||||
if err := cl.Sync(); err != nil {
|
if err := cl.Sync(); err != nil {
|
||||||
fmt.Println("Sync() returned ", err)
|
fmt.Println("Sync() returned ", err)
|
||||||
}
|
}
|
||||||
|
@ -43,6 +46,7 @@ func Matrix() {
|
||||||
sayCh <- fmt.Sprintf("%s\n%s", "*", SoftwareInfo())
|
sayCh <- fmt.Sprintf("%s\n%s", "*", SoftwareInfo())
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
fmt.Println("hier 3")
|
||||||
var targets string
|
var targets string
|
||||||
line := strings.Split(<-sayCh, "\n")
|
line := strings.Split(<-sayCh, "\n")
|
||||||
if len(line) < 2 {
|
if len(line) < 2 {
|
||||||
|
@ -58,5 +62,6 @@ func Matrix() {
|
||||||
cl.SendText(tar, line[1])
|
cl.SendText(tar, line[1])
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
|
time.sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue