Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra check to bot startup to ensure all roles within STATISTICS_ROLES list exists #235

Open
CarrotManMatt opened this issue Jun 11, 2024 · 0 comments
Labels
good first issue Good for newcomers refactor Improvements to the codebase that do not directly affect users

Comments

@CarrotManMatt
Copy link
Member

This check will need to be performed in both the on_ready event, and also within the future command that will allow changing of config variables (likely to be /config set <setting> <value>), implemented within #221.

It has to be called from the event/command side rather than from within the config variable loading process, because the config loading is done before the connection to Discord is made (so the existent roles could not be retrieved).

@CarrotManMatt CarrotManMatt added good first issue Good for newcomers refactor Improvements to the codebase that do not directly affect users labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers refactor Improvements to the codebase that do not directly affect users
Projects
None yet
Development

No branches or pull requests

1 participant