Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Event for ended matches of friends #10

Open
mxmzb opened this issue Oct 14, 2015 · 4 comments · Fixed by #12
Open

Event for ended matches of friends #10

mxmzb opened this issue Oct 14, 2015 · 4 comments · Fixed by #12

Comments

@mxmzb
Copy link

mxmzb commented Oct 14, 2015

Is there any way to get a notification just the moment a friend finishes a match?

@paralin
Copy link
Owner

paralin commented Oct 14, 2015

Probably possible via monitoring rich presence.

Recently I've put some effort into implementing rich presence in the way that the bot will set its own presence properly. It'd be valuable to parse friends' rich presence too.

@paralin
Copy link
Owner

paralin commented Oct 27, 2015

@sbx320 @Maximski I don't think this quite does it - it would be good to build a more high level rich presence API on top of what we have now to do things like MatchEnded events and so forth.

Also todo is to investigate if all of the ingame status stuff is still done with RichPresence (quite a bit of information is shown now!) or if there's some other private API going on internally to fetch that data.

@sbx320
Copy link
Contributor

sbx320 commented Oct 27, 2015

There's a lot of information being sent through RichPresence. The sample code I included at the pull request nicely prints it, so that may be helpful for figuring out what the data looks like for certain events. It includes things like current hero, lobbyId and custom games from what I saw during testing.

Do you have a certain API design in mind already?

@paralin
Copy link
Owner

paralin commented Oct 27, 2015

@sbx320 Not particularly. It would be good to get this working properly in all cases though:

https://github.com/paralin/Dota2/blob/master/Dota2/GC/DotaGCHandler.cs#L233

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants