die after history

This commit is contained in:
shoopea 2019-05-04 12:50:04 +08:00
parent b2881a772a
commit 702e882b5f

10
main.go
View File

@ -113,18 +113,14 @@ func main() {
if *history {
fmt.Printf("Retrieving chat.\n")
go getHistory(client)
getHistory(client)
return
}
fmt.Println("Started !")
go ListenCW(client)
fmt.Println("Started !")
log.Println("Forever.")
// Main loop
for {
time.Sleep(1 * time.Second)
log.Println("Alive.")
}
forever := make(chan bool)
<-forever
}