Philipp15b / go-steam

Steam's protocol in Go to allow automation of different actions on the Steam network without running an actual Steam client. Includes APIs for friends, chatting, trading, trade offers and TF2 crafting.
https://pkg.go.dev/github.com/Philipp15b/go-steam/v3
Other
387 stars 131 forks source link

gsbot.go example is broken #99

Open Nuc1eoN opened 5 years ago

Nuc1eoN commented 5 years ago

Currently the example gsbot.go does not compile:

$ go build gsbot.go 
# command-line-arguments
./gsbot.go:34:3: too few values in &gsbot.LogOnDetails literal

This seems to have been caused by https://github.com/Philipp15b/go-steam/commit/bc3a0ce9cf39f0b28758c028466907a95cbb3fa5

EDIT: I have just used named fields for now, but since I am not sure how exactly the TwoFactorCode is to be used (either TwoFactor or AuthCode or do we need both?) this should probably be fixed in a different way for the example file. Also the description comment above might need adjustment to reflect how it is supposed to be used.

Philipp15b commented 5 years ago

If I remember correctly, AuthCode is used for email verification, and TwoFactorCode is used for mobile authentication via the Steam mobile app. Pull requests are appreciated!