You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matterbridge/vendor/github.com/Philipp15b/go-steam
Duco van Amstel 09875fe160 Update direct dependencies where possible 6 years ago
..
cryptoutil Add vendor (steam) 7 years ago
netutil Add vendor (steam) 7 years ago
protocol Use mod vendor for vendored directory (backwards compatible) 6 years ago
rwu Add vendor (steam) 7 years ago
socialcache Add vendor (steam) 7 years ago
steamid Add vendor (steam) 7 years ago
.gitignore Use mod vendor for vendored directory (backwards compatible) 6 years ago
.gitmodules Use mod vendor for vendored directory (backwards compatible) 6 years ago
LICENSE.txt Add vendor (steam) 7 years ago
README.md Use mod vendor for vendored directory (backwards compatible) 6 years ago
auth.go Update direct dependencies where possible 6 years ago
auth_events.go Add vendor (steam) 7 years ago
client.go Add vendor (steam) 7 years ago
client_events.go Add vendor (steam) 7 years ago
connection.go Add vendor (steam) 7 years ago
doc.go Add vendor (steam) 7 years ago
gamecoordinator.go Add vendor (steam) 7 years ago
keys.go Add vendor (steam) 7 years ago
notifications.go Add vendor (steam) 7 years ago
notifications_events.go Add vendor (steam) 7 years ago
servers.go Add vendor (steam) 7 years ago
social.go Add vendor (steam) 7 years ago
social_events.go Add vendor (steam) 7 years ago
steam_directory.go Add vendor (steam) 7 years ago
trading.go Add vendor (steam) 7 years ago
trading_events.go Add vendor (steam) 7 years ago
web.go Add vendor (steam) 7 years ago
web_events.go Add vendor (steam) 7 years ago

README.md

Steam for Go

This library implements Steam's protocol to allow automation of different actions on Steam without running an actual Steam client. It is based on SteamKit2, a .NET library.

In addition, it contains APIs to Steam Community features, like trade offers and inventories.

Some of the currently implemented features:

  • Trading and trade offers, including inventories and notifications
  • Friend and group management
  • Chatting with friends
  • Persona states (online, offline, looking to trade, etc.)
  • SteamGuard with two-factor authentication
  • Team Fortress 2: Crafting, moving, naming and deleting items

If this is useful to you, there's also the go-steamapi package that wraps some of the official Steam Web API's types.

Installation

go get github.com/Philipp15b/go-steam

Usage

You can view the documentation with the godoc tool or online on godoc.org.

You should also take a look at the following sub-packages:

Working with go-steam

Whether you want to develop your own Steam bot or directly work on go-steam itself, there are are few things to know.

  • If something is not working, check first if the same operation works (under the same conditions!) in the Steam client on that account. Maybe there's something go-steam doesn't handle correctly or you're missing a warning that's not obviously shown in go-steam. This is particularly important when working with trading since there are restrictions, for example newly authorized devices will not be able to trade for seven days.
  • Since Steam does not maintain a public API for most of the things go-steam implements, you can expect that sometimes things break randomly. Especially the trade and tradeoffer packages have been affected in the past.
  • Always gather as much information as possible. When you file an issue, be as precise and complete as you can. This makes debugging way easier.
  • If you haven't noticed yet, expect to find lots of things out yourself. Debugging can be complicated and Steam's internals are too.
  • Sometimes things break and other SteamKit ports are fixed already. Maybe take a look what people are saying over there? There's also the SteamKit IRC channel.

Updating go-steam to a new SteamKit version

To update go-steam to a new version of SteamKit, do the following:

go get github.com/golang/protobuf/protoc-gen-go/
git submodule init && git submodule update
cd generator
go run generator.go clean proto steamlang

Make sure that $GOPATH/bin / protoc-gen-go is in your $PATH. You'll also need protoc, the protocol buffer compiler. At the moment, we use Protocol Buffers 2.6.1 with proco-gen-go-2402d76.

To compile the Steam Language files, you also need the .NET Framework on Windows or mono on other operating systems.

Apply the protocol changes where necessary.

License

Steam for Go is licensed under the New BSD License. More information can be found in LICENSE.txt.