fix panic with invalid bot name

This commit is contained in:
Stephen McQuay 2016-07-13 21:23:41 -06:00
parent 174be3b0ab
commit f9984c1826
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D
1 changed files with 3 additions and 0 deletions

View File

@ -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