diff --git a/cmd/botspectate/main.go b/cmd/botspectate/main.go index 4f76423..644a49e 100644 --- a/cmd/botspectate/main.go +++ b/cmd/botspectate/main.go @@ -39,6 +39,15 @@ func main() { ui := client.NewSpectator(c.Width, c.Height) c.Player = ui + go func() { + if ui.User == nil { + return + } + for e := range ui.User { + fmt.Printf("%+v\n", e) + } + }() + go func() { if err := c.Play(); err != nil { close(ui.Die)