Skip to content
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

Closed
STadas opened this issue Apr 4, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@STadas
Copy link
Owner

STadas commented Apr 4, 2021

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.

STadas added a commit that referenced this issue May 8, 2021
@STadas STadas closed this as completed May 8, 2021
@STadas STadas added the enhancement New feature or request label Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant