This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
make sending requests to discord async every 15 seconds instead of every hook trigger #5
Labels
enhancement
New feature or request
Right now the requests are sent only when a hook is triggered, i.e. when user goes to main menu or reviews a card, etc.
This is not ideal because if, for example, the user is still on the 15sec cooldown and they switch from reviewing to menu, it will not update the Rich Presence.
This can be fixed using python's Thread library by making the requests constantly send every 15 seconds and simply grabbing the currently active status from a variable instead of relying on a hook to activate. The hooks will still be used to update the status inside the code, though.
The text was updated successfully, but these errors were encountered: