From e0170df73fb52078a4a1e21ebad3cbf6706bac82 Mon Sep 17 00:00:00 2001 From: Sebastian Winkler Date: Fri, 19 Aug 2016 09:01:32 +0200 Subject: [PATCH] shows user info on start --- main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 29534e1..3043834 100644 --- a/main.go +++ b/main.go @@ -102,7 +102,13 @@ func main() { return } - fmt.Println("Client is now connected. Press CTRL-C to exit.") + u, err := dg.User("@me") + if err != nil { + fmt.Println("error obtaining account details,", err) + } + + fmt.Printf("Client is now connected as %s (ID: %s). Press CTRL-C to exit.", + u.Username, u.ID) err = dg.UpdateStatus(1, "") if err != nil {