Improving basic swarm bot
This commit is contained in:
@@ -30,6 +30,7 @@ var forceJSON = flag.Bool("json", false, "force json encoding")
|
||||
|
||||
func main() {
|
||||
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
|
||||
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
var gameId string
|
||||
flag.Parse()
|
||||
@@ -39,6 +40,7 @@ func main() {
|
||||
gameId = flag.Arg(0)
|
||||
}
|
||||
|
||||
client.Verbose = *verbose
|
||||
c := &client.Client{
|
||||
Server: *serverHostname,
|
||||
Port: *port,
|
||||
|
||||
Reference in New Issue
Block a user