fix panic with invalid bot name

master
Stephen McQuay 6 years ago
parent 174be3b0ab
commit f9984c1826
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D
  1. 3
      cmd/gobot/main.go

@ -64,6 +64,9 @@ func main() {
c.Player = client.NewSimplePlayer(800, 600, sr)
case "fraserbot":
c.Player = client.NewFraserbot("Fraserbot")
default:
fmt.Fprintf(os.Stderr, "must specify a known bot \n")
os.Exit(1)
}
var err error

Loading…
Cancel
Save