Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Queue level updates on bot startup #79

Merged
merged 4 commits into from
Mar 6, 2021
Merged

Queue level updates on bot startup #79

merged 4 commits into from
Mar 6, 2021

Conversation

samollari
Copy link
Contributor

To help with transitioning to the new level algorithm (#77), when the bot starts, we should figure out whose levels need to be updated. At the moment, for reasons I can't quite figure out (and is also holding up #23 and by extension #26), we can't update member roles without retrieving the GuildMember from a message they've sent. Therefore the bot now just notes whose level roles need to be updated and updates them on their next message.

Instead of running through all members on boot (because it doesn't work), level updates are queued so a user's level is updated on that their next message
@samollari samollari added the enhancement New feature or request label Mar 4, 2021
@samollari samollari added this to the Levels milestone Mar 4, 2021
@samollari samollari requested review from Muirrum and EarlJr53 March 4, 2021 20:03
@samollari samollari self-assigned this Mar 4, 2021
@samollari samollari enabled auto-merge (squash) March 4, 2021 20:03
@samollari samollari removed this from the Levels milestone Mar 4, 2021
@samollari samollari merged commit 70ac90c into master Mar 6, 2021
@samollari samollari deleted the boot-levelupdate branch March 6, 2021 21:49
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

Successfully merging this pull request may close these issues.

2 participants