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

Add Rich Presence to PersonaStateEvent #123

Closed ralfizzle closed 2 years ago

ralfizzle commented 2 years ago

This enables Rich Presence for PersonaStateEvent. Tested and got this example output when receiving a PersonaStateEvent:

2021/12/05 16:04:13 [key:"status" value:"#DOTA_RP_INIT" key:"steam_display" value:"#DOTA_RP_INIT" key:"num_params" value:"0" key:"BattleCup" value:"win_date: 1638666000 valid_until: 1639357200 skill_level: 6 tournament_id: 3398630 division_id: 6 team_id: 8620259 streak: 1 trophy_id: 67" key:"WatchableGameID" value:"0" key:"steam_player_group" value:"27490444881435970" key:"steam_player_group_size" value:"4" key:"party" value:"party_id: 27490444881435970 party_state: UI open: false members { steam_id: 76561198026985442 } members { steam_id: 76561198010457614 } members { steam_id: 76561198110115366 } members { steam_id: 76561198081771288 }" key:"lobby" value:"lobby_id: 27490444942438661 lobby_state: UI password: true game_mode: DOTA_GAMEMODE_AP member_count: 1 max_member_count: 10 name: \"fff\" lobby_type: 1" ]

Philipp15b commented 2 years ago

Thanks!