Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
shows user info on start
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Winkler committed Aug 19, 2016
1 parent 1d01bef commit e0170df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e0170df

Please sign in to comment.