fix panic with invalid bot name
This commit is contained in:
parent
174be3b0ab
commit
f9984c1826
@ -64,6 +64,9 @@ func main() {
|
|||||||
c.Player = client.NewSimplePlayer(800, 600, sr)
|
c.Player = client.NewSimplePlayer(800, 600, sr)
|
||||||
case "fraserbot":
|
case "fraserbot":
|
||||||
c.Player = client.NewFraserbot("Fraserbot")
|
c.Player = client.NewFraserbot("Fraserbot")
|
||||||
|
default:
|
||||||
|
fmt.Fprintf(os.Stderr, "must specify a known bot \n")
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
Loading…
Reference in New Issue
Block a user