fix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
85b5e3d519
commit
d128cc7491
1
main.go
1
main.go
|
@ -36,6 +36,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
sayCh := make(chan string, 1024)
|
||||||
xlog.Info("%s started", SoftwareInfo())
|
xlog.Info("%s started", SoftwareInfo())
|
||||||
modules.Init(sayCh, *mods)
|
modules.Init(sayCh, *mods)
|
||||||
modules.BotNick = strings.ToLower(*nick)
|
modules.BotNick = strings.ToLower(*nick)
|
||||||
|
|
|
@ -31,11 +31,8 @@ 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,14 +40,9 @@ func Matrix() {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
fmt.Println("hier 11")
|
|
||||||
|
|
||||||
sayCh <- fmt.Sprintf("%s\n%s", "*", SoftwareInfo())
|
sayCh <- fmt.Sprintf("%s\n%s", "*", SoftwareInfo())
|
||||||
|
|
||||||
fmt.Println("hier 4")
|
|
||||||
|
|
||||||
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 {
|
||||||
|
|
Loading…
Reference in New Issue