This commit is contained in:
		
							parent
							
								
									f375dc5e4d
								
							
						
					
					
						commit
						45e0de4b8c
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue