diff --git a/matrix.go b/matrix.go index 64368ee..f02e3ca 100644 --- a/matrix.go +++ b/matrix.go @@ -31,8 +31,11 @@ func Matrix() { } }) + fmt.Println("hier 1") + go func() { for { + fmt.Println("hier 2") if err := cl.Sync(); err != nil { fmt.Println("Sync() returned ", err) } @@ -43,6 +46,7 @@ func Matrix() { sayCh <- fmt.Sprintf("%s\n%s", "*", SoftwareInfo()) for { + fmt.Println("hier 3") var targets string line := strings.Split(<-sayCh, "\n") if len(line) < 2 { @@ -58,5 +62,6 @@ func Matrix() { cl.SendText(tar, line[1]) time.Sleep(1 * time.Second) } + time.sleep(1 * time.Second) } }