Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove most things probably too aggressive, but we can add stuff back also, discord-py-slash-commands seems to have moved to discord-py-interactions added generic bot * create basic extension * add back util * add back template * rename command decorators * remove dm config since all commands will be restricted to guild anyways * added ctf cog allow other parameters to be passed via command decorator make custom decorator inherit stuff * added docstrings to command decorators * generalize sanitize_name and sanitize class and function names unable to sanitize option names since calls require exact param name * enable base type checking * add placeholders for ctf and chal commands * update some things * ctf create now creates a forum oops that's a lot of changes * add tags * pinned general post * placeholder for adding custom category * implement add_category * add category auto complete for chal create * change tags to only be categories and unsolved and no combinations * improve autocomplete with filtering * prevent adding duplicate tags * implement chal create * add some spacing * move general name to config * implement chal solve * remove testing cog * move challenge categories to config file * set permissions to ctf role only for ctf forums * remove underscore for consistent naming * implement addrole * formatting * add ctf optin since it needs different permissions, I decided to put it under different a command * fix class name * implement optout * some formatting details * update readme permissions * update readme environment variables * remove workspace file * change for else to any #30 (comment) * added docstring about autocomplete addresses #30 (comment) * add checkmark to channel name after solving add check if a challenge has already been marked as solved addresses #30 (comment) * /chal solve sends a message in general addresses #30 (comment) * alias admin check at top of file addresses #30 (comment) * make unsolved check lowercase * change for else to any pattern addresses #30 (comment) * add newline addresses #30 (comment) * remove networking addresses #30 (comment) * break conditional into separate statements addresses #30 (comment) * change max_length in sanitize_name to keyword argument addresses #30 (comment) * add error message if /ctfs optout called with no ctf role * change permissions error message * error if already have ctf role * add general message * solve message in general includes flag * add unsolved variants of categories (combination tags) --------- Co-authored-by: jupiter <[email protected]>
- Loading branch information