Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.88k stars 3.76k forks source link

Game doesn't show if already playing when connecting to discord #362

Closed dklollol closed 8 years ago

dklollol commented 8 years ago

If you already have a game running when connecting, then it says your not playing anything.

khazhyk commented 8 years ago

Can you explain in more detail what you mean?

dklollol commented 8 years ago

When a member is already playing a game and triggers on_member_update(before, after) (by connecting to discord disconnected -> connected), both before and after games are set to none. But on discord it says hes playing for example rocket league.

khazhyk commented 8 years ago

So you mean a user is already online on one computer, then becomes online on another computer and their game gets unset?

khazhyk commented 8 years ago

I can't reproduce this behavior, how exactly does this situation arise?

dklollol commented 8 years ago

Its one user one machine one discord account. To reproduce it close discord start any game that discord can register and when the game is running you start discord. This way your connecting to discord with a game already running.

khazhyk commented 8 years ago

Are you trying to get your own game?

dklollol commented 8 years ago

I have a bot which logs and tracks when my server members start and stop playing a specific game (Discord id: xxxx81666752200704, start date: 2016-10-15 17:22:47, end date: 2016-10-15 18:14:37)

It works but there is one exception and that is if people have the game running already when connecting to discord. In that case it says hes playing nothing when connecting.

khazhyk commented 8 years ago

I can reproduce this, this is a discord bug, not with this library.

Rapptz commented 8 years ago

This is a discord bug. When you connect it shows that you're playing a game but in reality you're not. It manifests itself as the game disappearing on other people's screens.