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

Auto create category if not exist #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Auto create category if not exist #11

wants to merge 1 commit into from

Conversation

ViRb3
Copy link
Contributor

@ViRb3 ViRb3 commented Aug 24, 2023

Useful when first setting up Discord guild.

@lucidBrot
Copy link
Member

I only had a quick glance so no idea if that is a potential issue or not, but: Can it happen that someone makes a new category on accident, due to a typo?

I guess it wouldn't matter much because everyone who is allowed to use the bot is also allowed to manually delete categories.

@ViRb3
Copy link
Contributor Author

ViRb3 commented Aug 30, 2023

Categories are already restricted to only what is defined in the config: https://github.com/0rganizers/the-organizer/blob/master/config.sample.json#L8, so this shouldn't be an issue.

@RobinJadoul
Copy link
Member

One more thing to consider here: the ordering/position of the category: if there's already archived CTFs, we would want the new challenge category to appear before them.
While it's also easy enough to manually reorder, it would be nice to not have to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants