versx / GuildStats

Display Discord Guild statistics via voice channels.
1 stars 1 forks source link

Internal Function Updates #4

Open SenorKarlos opened 2 years ago

SenorKarlos commented 2 years ago

Per our conversation on the current pulling and updating functions and the impacts of large volume configuration, I'm opening this issue to track the updating. We can likely close the other two that are open.

Triggered Updates - configure the bot to listen for discord events and update the appropriate channels as needed. Likely needs Queueing system to avoid any rate limiting from frequent or simultaneous updates

Update Interval Check - I'm using 5 minutes to keep it fresh, but if the above is working well then this can be a higher amount and essentially a backup to the initial run and triggered system. I feel like it should not update every channel either, but only compare and update if the value has changed. This will avoid a lot of discord transactions & potential rate limits/conflicts. Also the interval updates should be queued behind any triggered updates and maybe compared to ensure it's not overwriting something that happened between information pull and post attempt.