fix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Andreas Neue 2019-08-01 12:12:17 +02:00
parent 85b5e3d519
commit d128cc7491
2 changed files with 1 additions and 8 deletions

View File

@ -36,6 +36,7 @@ func init() {
}
func main() {
sayCh := make(chan string, 1024)
xlog.Info("%s started", SoftwareInfo())
modules.Init(sayCh, *mods)
modules.BotNick = strings.ToLower(*nick)

View File

@ -31,11 +31,8 @@ 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,14 +40,9 @@ func Matrix() {
}
}()
fmt.Println("hier 11")
sayCh <- fmt.Sprintf("%s\n%s", "*", SoftwareInfo())
fmt.Println("hier 4")
for {
fmt.Println("hier 3")
var targets string
line := strings.Split(<-sayCh, "\n")
if len(line) < 2 {