//GetID tries to get connection id for the first server available.
GetID tries to get connection id for the first server available.
// GetID tries to get connection id for the first server available .
func (bot *Hitbot) GetID() {
	buf := new(bytes.Buffer)
	for i := bot.activeServer + 1; i < len(bot.servers); i++ {
		if _, err := http.Get(buf, "http://"+bot.servers[i].ServerIP+"/socket.io/1"); err == nil {
			temp := strings.Split(buf.String(), ":")
			bot.connID = temp[0]
			bot.activeServer = i
			if bot.verbose {
				log.Print("Connection ID was found properly")
			}
			return
		}
	}
	log.Fatal("Could not get connection IDs!!!")
}
func ( bot * Hitbot ) GetID ( ) { buf := new ( bytes . Buffer ) for i := bot . activeServer + 1 ; i < len ( bot . servers ) ; i ++ { if _ , err := http . Get ( buf , " " + bot . servers [ i ] . ServerIP + " " ) ; err == nil { temp := strings . Split ( buf . String ( ) , " " ) bot . connID = temp [ 0 ] bot . activeServer = i if bot . verbose { log . Print ( " " ) } return } } log . Fatal ( " " ) }
GetID tries to get connection id for the first server available.
GetID tries to get connection id for the first server available .