From b597ec529e7734531e28845f40e49e9ce738f526 Mon Sep 17 00:00:00 2001 From: stephen mcquay Date: Sun, 17 Jul 2016 23:36:53 -0700 Subject: [PATCH] DELETE: print out user events --- cmd/botspectate/main.go | 9 +++++++++ 1 file changed, 9 insertions(+) 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)