add clean exit, select channel on startup
This commit is contained in:
parent
3df1d842f3
commit
a8a867e4f9
|
@ -69,7 +69,14 @@ func main() {
|
|||
fmt.Printf("\t%d - %s\n", idx, channel.Name)
|
||||
}
|
||||
|
||||
channel := client.Channels.Find("Antro delle Bestemmie")
|
||||
client.Self.Move(channel)
|
||||
fmt.Println("Chosen Channel: ", channel.Name)
|
||||
for {
|
||||
time.Sleep(1 * time.Second)
|
||||
if client.State() == gumble.StateDisconnected {
|
||||
log.Println("Disconnected from server")
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user